Skip to content

DateOnlyAssertions.BeOnOrBefore Method ​

Definition ​

Asserts that the DateOnly value is on or before the expected value.

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

View source

Parameters ​

NameTypeDescription
expectedDateOnlyThe value the DateOnly should be on or before.

Returns ​

AssertionsChain<DateOnlyAssertions, DateOnly>

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