Skip to content

ObjectAssertions<TSelf, T> Constructors ​

Base class for assertions on a value, providing null checks, equality and type checking. Derived classes pass themselves as TSelf so that assertions defined here return a chain whose And is the derived type.

c#
protected ObjectAssertions(T? value);

View source

Parameters ​

NameTypeDescription
valueTThe value to assert on.