Skip to content

DateTimeOffsetAssertions.BeExactly Method ​

Definition ​

Asserts that the DateTimeOffset value represents the same point in time and has the same offset as the expected value.

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

View source

Parameters ​

NameTypeDescription
expectedDateTimeOffsetThe expected value.

Returns ​

AssertionsChain<DateTimeOffsetAssertions, DateTimeOffset>

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