Skip to content

ExceptionExtensions.NotHaveActualValue Method

Definition

Asserts that the ArgumentOutOfRangeException does not have the specified actual value.

public static ExceptionAssertionsChain<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

ExceptionAssertionsChain<TException>

An ExceptionAssertionsChain<T> for chaining further assertions.