Skip to content

ExceptionExtensions.HaveActualValue Method ​

Definition ​

Asserts that the ArgumentOutOfRangeException has the specified actual value.

c#
public static AssertionsChain<ExceptionAssertions<TException>, TException> HaveActualValue<TException>(this ExceptionAssertions<TException> assertions, object expected)
   where TException : ArgumentOutOfRangeException;

View source

Type Parameters ​

NameDescription
TExceptionThe type of the exception.

Parameters ​

NameTypeDescription
assertionsExceptionAssertions<TException>The assertions object.
expectedObjectThe expected actual value.

Returns ​

AssertionsChain<ExceptionAssertions<TException>, TException>

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