csUnit Class Library

Assert.DoesNotContain Method (String, String, String)

Assert, that a string is not contained in a search string. The search is case sensitive. This version accepts a custom message.

public static void DoesNotContain(
   string searchString,
   string toBeSearched,
   string customMessage
);

Parameters

searchString
The string to search for.
toBeSearched
The string in which to search.
customMessage
Message to display when assertion fails.

See Also

Assert Class | csUnit Namespace | Assert.DoesNotContain Overload List