AsyncActionAssertions.ThrowArgumentOutOfRangeExceptionAsync Method
Definition
Asserts that the async action throws an ArgumentOutOfRangeException with the specified message, parameter name and actual value.
public Task<ActionAssertionsChain<ArgumentOutOfRangeException>> ThrowArgumentOutOfRangeExceptionAsync(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
Task<ActionAssertionsChain<ArgumentOutOfRangeException>>
A Task<TResult> that resolves to an ActionAssertionsChain<TException> containing the thrown exception.