Skip to content

AssertionsChain<TAssertions, T> Struct ​

Definition ​

Enables chaining of assertions on a value after a successful assertion.

c#
public sealed struct AssertionsChain<TAssertions, T>
   where TAssertions : ObjectAssertions<TAssertions, T>

View source

Type Parameters ​

NameDescription
TAssertionsThe type of the assertions object to chain from.
TThe type of the value being asserted on.

Constructors ​

NameDescription
AssertionsChain(TAssertions)Enables chaining of assertions on a value after a successful assertion.

Properties ​

NameDescription
AndGets the assertions object for chaining further assertions.
ThatGets the value being asserted on, for use in further assertions via .Should().
ValueGets the value being asserted on.