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.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Contains(String^, String^) | Verifies that the first string contains the second string. This method is case sensitive. |
![]() ![]() | 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. |
![]() ![]() | Contains(String^, String^, String^, array<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. |
Show:

