다음을 통해 공유


StringAssert.Contains Method

Include Protected Members
Include Inherited Members

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.

Overload List

  Name Description
Public methodStatic member Contains(String, String) Verifies that the first string contains the second string. This method is case sensitive.
Public methodStatic 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 methodStatic member 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.

Top

See Also

Reference

StringAssert Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace