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

StringConstraint

public abstract class StringConstraint : Constraint
StringConstraint is the abstract base for constraints that operate on strings. It supports the IgnoreCase modifier for string operations.
protected bool caseInsensitive

Indicates whether tests should be case-insensitive

protected string expected

The expected value

public StringConstraint IgnoreCase { get; }

Modify the constraint to ignore case in matching.

public StringConstraint(string expected)

Constructs a StringConstraint given an expected value