<PackageReference Include="NUnit" Version="4.3.0" />

EqualStringConstraint

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 EqualStringConstraint(string expected)

Initializes a new instance of the EqualConstraint class.

public EqualUsingConstraint<string> Using(StringComparer comparer)

Sets the StringComparer to be used in the comparison.