ExceptionExtensions.NotHaveParamName Method
Definition
Asserts that the ArgumentException does not have the specified parameter name.
public static ExceptionAssertionsChain<TException> NotHaveParamName<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 parameter name that is not expected. |
Returns
ExceptionAssertionsChain<TException>
An ExceptionAssertionsChain<T> for chaining further assertions.