Compartilhar via


StringAssert.StartsWith Method

Include Protected Members
Include Inherited Members

Verifies that a specified string begins with 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 StartsWith(String, String) Verifies that the first string begins with the second string. This method is case sensitive.
Public methodStatic member StartsWith(String, String, String) Verifies that the first string begins with the second string. Displays a message if the assertion fails. This method is case sensitive.
Public methodStatic member StartsWith(String, String, String, array<Object[]) Verifies that the first string begins with 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