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

ContainsConstraint

ContainsConstraint tests a whether a string contains a substring or a collection contains an object. It postpones the decision of which test to use until the type of the actual argument is known. This allows testing whether a string is contained in a collection or as a substring of another string using the same syntax.

Flag the constraint to ignore case and return self.

public ContainsConstraint(object expected)

Initializes a new instance of the ContainsConstraint class.