Export (0) Print
Expand All

StringAssert.Contains Method

Verifies that a specified string contains a specified substring. This method is case sensitive.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member Contains(String, String) Verifies that the first string contains the second string. This method is case sensitive.
Public method Static member Contains(String, String, String) Verifies that the first string contains the second string. Displays a message if the assertion fails. This method is case sensitive.
Public method Static member Contains(String, String, String, Object[]) Verifies that the first string contains the second string. Displays a message if the assertion fails, and applies the specified formatting to it. This method is case sensitive.
Top
Show:
© 2014 Microsoft