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