Skip to content

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 : Exception

View source

Type Parameters ​

NameDescription
TExceptionThe type of the exception that was thrown.

Constructors ​

NameDescription
ActionAssertionsChain(TException)Enables access to an exception thrown by an action after a successful throw assertion.

Properties ​

NameDescription
ExceptionGets the exception that was thrown.
ThatGets the exception that was thrown, for use in further assertions via .Should().