Summary
Returns a new ContainsConstraint. This constraint
will, in turn, make use of the appropriate second-level
constraint, depending on the type of the actual argument.
This overload is only used if the item sought is a string,
since any other type implies that we are looking for a
collection member.
- Namespace
- TCLite
.Constraints - Containing Type
- ConstraintExpression
Syntax
public ContainsConstraint<string> Contains(string expected)
Parameters
Name | Type | Description |
---|---|---|
expected | string |
Return Value
Type | Description |
---|---|
ContainsConstraint |