This documentation is archived and is not being maintained.

StringAssert.Contains Method

Verifies that a specified string contains a specified substring.

Name Description
StringAssert.Contains (String, String) Verifies that the first string contains the second string.
StringAssert.Contains (String, String, String) Verifies that the first string contains the second string. Displays a message if the assertion fails.
StringAssert.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.
Show: