Skip to content

DateOnlyAssertions.BeBefore Method ​

Definition ​

Asserts that the DateOnly value is before the expected value.

c#
public AssertionsChain<DateOnlyAssertions, DateOnly> BeBefore(DateOnly expected);

View source

Parameters ​

NameTypeDescription
expectedDateOnlyThe value the DateOnly should be before.

Returns ​

AssertionsChain<DateOnlyAssertions, DateOnly>

An AssertionsChain<TAssertions, T> for chaining further assertions.