Skip to content

ExceptionExtensions.HaveActualValue Method

Definition

Asserts that the ArgumentOutOfRangeException has the specified actual value.

public static ExceptionAssertionsChain<TException> HaveActualValue<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 expected actual value.

Returns

ExceptionAssertionsChain<TException>

An ExceptionAssertionsChain<T> for chaining further assertions.