Skip to content

ActionAssertions.ThrowArgumentOutOfRangeException Method

Definition

Asserts that the action throws an ArgumentOutOfRangeException with the specified message, parameter name and actual value.

public ActionAssertionsChain<ArgumentOutOfRangeException> ThrowArgumentOutOfRangeException(string expectedMessage, string expectedParamName, object expectedActualValue);

Parameters

Name Type Description
expectedMessage String The expected exception message.
expectedParamName String The expected parameter name.
expectedActualValue Object The expected actual value.

Returns

ActionAssertionsChain<ArgumentOutOfRangeException>

An ActionAssertionsChain<TException> containing the thrown exception.