StringAssert.Contains Method (String, String)
Visual Studio 2012
Verifies that the first string contains the second string. This method is case sensitive.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
| Exception | Condition |
|---|---|
| AssertFailedException | substring is not found in value. |
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.