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

NUnit.Framework.Constraints.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.
namespace NUnit.Framework.Constraints { }