Skip to content

DateTimeOffsetAssertions.NotBeExactly Method ​

Definition ​

Asserts that the DateTimeOffset value does not represent the same point in time with the same offset as the specified value.

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

View source

Parameters ​

NameTypeDescription
expectedDateTimeOffsetThe value that is not expected.

Returns ​

AssertionsChain<DateTimeOffsetAssertions, DateTimeOffset>

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