ExceptionExtensions.HaveParamName Method
Definition
Asserts that the ArgumentException has the specified parameter name.
public static ExceptionAssertionsChain<TException> HaveParamName<TException>(this ExceptionAssertions<TException> assertions, string expected)
where TException : ArgumentException;
Type Parameters
| Name | Description |
|---|---|
| TException | The type of the exception. |
Parameters
| Name | Type | Description |
|---|---|---|
| assertions | ExceptionAssertions<TException> | The assertions object. |
| expected | String | The expected parameter name. |
Returns
ExceptionAssertionsChain<TException>
An ExceptionAssertionsChain<T> for chaining further assertions.