DateTimeOffsetAssertions.NotBeApproximately Method
Definition
Asserts that the DateTimeOffset value is not within the specified precision of the specified value.
c#
public AssertionsChain<DateTimeOffsetAssertions, DateTimeOffset> NotBeApproximately(DateTimeOffset expected, TimeSpan precision);Parameters
| Name | Type | Description |
|---|---|---|
expected | DateTimeOffset | The value that is not expected. |
precision | TimeSpan | The maximum difference between the value and expected that is considered approximately equal. |
Returns
AssertionsChain<DateTimeOffsetAssertions, DateTimeOffset>
An AssertionsChain<TAssertions, T> for chaining further assertions.