<PackageReference Include="NUnit" Version="4.4.0-beta.2.1" />

EqualConstraint<T>

public class EqualConstraint<T> : EqualConstraint
EqualConstraint is able to compare an actual value with the expected value provided in its constructor. Two objects are considered equal if both are null, or if both have the same value. NUnit has special semantics for some object types.
public EqualConstraint(object expected)

Initializes a new instance of the EqualConstraint class.

Enables comparing a subset of instance properties.