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>Type Parameters
| Name | Description |
|---|---|
TAssertions | The type of the assertions object to chain from. |
T | The type of the value being asserted on. |
Constructors
| Name | Description |
|---|---|
AssertionsChain(TAssertions) | Enables chaining of assertions on a value after a successful assertion. |
Properties
| Name | Description |
|---|---|
And | Gets the assertions object for chaining further assertions. |
That | Gets the value being asserted on, for use in further assertions via .Should(). |
Value | Gets the value being asserted on. |