csUnit Class Library

Assert.Contains Method (String, String)

Assert that a string is a substring of a different string. The search is case sensitive.

public static void Contains(
   string expected,
   string toBeSearched
);

Parameters

expected
The expected string.
toBeSearched
The string to search.

See Also

Assert Class | csUnit Namespace | Assert.Contains Overload List