ExceptionExtensions.NotHaveActualValue Method
Definition
Asserts that the ArgumentOutOfRangeException does not have the specified actual value.
c#
public static AssertionsChain<ExceptionAssertions<TException>, TException> NotHaveActualValue<TException>(this ExceptionAssertions<TException> assertions, object expected)
where TException : ArgumentOutOfRangeException;Type Parameters
| Name | Description |
|---|---|
TException | The type of the exception. |
Parameters
| Name | Type | Description |
|---|---|---|
assertions | ExceptionAssertions<TException> | The assertions object. |
expected | Object | The actual value that is not expected. |
Returns
AssertionsChain<ExceptionAssertions<TException>, TException>
An AssertionsChain<TAssertions, T> for chaining further assertions.