DateOnlyAssertions.BeOnOrBefore Method
Definition
Asserts that the DateOnly value is on or before the expected value.
c#
public AssertionsChain<DateOnlyAssertions, DateOnly> BeOnOrBefore(DateOnly expected);Parameters
| Name | Type | Description |
|---|---|---|
expected | DateOnly | The value the DateOnly should be on or before. |
Returns
AssertionsChain<DateOnlyAssertions, DateOnly>
An AssertionsChain<TAssertions, T> for chaining further assertions.