Skip to content

DateTimeOffsetAssertions.BeOnOrBefore Method ​

Definition ​

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

c#
public AssertionsChain<DateTimeOffsetAssertions, DateTimeOffset> BeOnOrBefore(DateTimeOffset expected);

View source

Parameters ​

NameTypeDescription
expectedDateTimeOffsetThe value the DateTimeOffset should be on or before.

Returns ​

AssertionsChain<DateTimeOffsetAssertions, DateTimeOffset>

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