Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StringAssert.Contains Method

 

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

Namespace:   Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticContains(String, String)

Verifies that the first string contains the second string. This method is case sensitive.

System_CAPS_pubmethodSystem_CAPS_staticContains(String, String, String)

Verifies that the first string contains the second string. Displays a message if the assertion fails. This method is case sensitive.

System_CAPS_pubmethodSystem_CAPS_staticContains(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.

Return to top
Show: