ActionAssertions.Throw Method
Overloads
Throw<TException>()
public ActionAssertionsChain<TException> Throw<TException>()
where TException : Exception;
Type Parameters
Name | Description |
---|---|
TException |
Returns
Throw<TException>(String)
public ActionAssertionsChain<TException> Throw<TException>(string expectedMessage)
where TException : Exception;
Type Parameters
Name | Description |
---|---|
TException |
Parameters
Name | Type | Description |
---|---|---|
expectedMessage |
Returns
Throw<TException>(String, Exception)
public ActionAssertionsChain<TException> Throw<TException>(string expectedMessage, Exception? expectedInnerException)
where TException : Exception;
Type Parameters
Name | Description |
---|---|
TException |
Parameters
Returns
Throw<TException>(TException)
public ActionAssertionsChain<TException> Throw<TException>(TException expected)
where TException : Exception;
Type Parameters
Name | Description |
---|---|
TException |
Parameters
Name | Type | Description |
---|---|---|
expected | TException |
Returns
Last modified: 29 January 2025