Partager via


StringAssert.EndsWith Method

Include Protected Members
Include Inherited Members

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