ExceptionExtensions.NotHaveParamName Method
Definition
Asserts that the ArgumentException does not have the specified parameter name.
c#
public static AssertionsChain<ExceptionAssertions<TException>, 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
AssertionsChain<ExceptionAssertions<TException>, TException>
An AssertionsChain<TAssertions, T> for chaining further assertions.