ActionAssertionsChain<TException> Struct
Definition
Enables access to an exception thrown by an action after a successful throw assertion.
c#
public sealed struct ActionAssertionsChain<TException>
where TException : ExceptionType Parameters
| Name | Description |
|---|---|
TException | The type of the exception that was thrown. |
Constructors
| Name | Description |
|---|---|
ActionAssertionsChain(TException) | Enables access to an exception thrown by an action after a successful throw assertion. |
Properties
| Name | Description |
|---|---|
Exception | Gets the exception that was thrown. |
That | Gets the exception that was thrown, for use in further assertions via .Should(). |