Export (0) Print
Expand All

StringAssert Methods

  NameDescription
Public method Static member Contains(String, String) Verifies that the first string contains the second string. This method is case sensitive.
Public method Static 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 method Static member Contains(String, String, String, 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.
Public method Static member DoesNotMatch(String, Regex) Verifies that the specified string does not match the regular expression.
Public method Static member DoesNotMatch(String, Regex, String) Verifies that the specified string does not match the regular expression. Displays a message if the assertion fails.
Public method Static member DoesNotMatch(String, Regex, String, Object[]) Verifies that the specified string does not match the regular expression. Displays a message if the assertion fails, and applies the specified formatting to it.
Public method Static member EndsWith(String, String) Verifies that the first string ends with the second string. This method is case sensitive.
Public method Static 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 method Static member EndsWith(String, String, String, 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.
Public method Static member Matches(String, Regex) Verifies that the specified string matches the regular expression.
Public method Static member Matches(String, Regex, String) Verifies that the specified string matches the regular expression. Displays a message if the assertion fails.
Public method Static member Matches(String, Regex, String, Object[]) Verifies that the specified string matches the regular expression. Displays a message if the assertion fails, and applies the specified formatting to it.
Public method Static member StartsWith(String, String) Verifies that the first string begins with the second string. This method is case sensitive.
Public method Static 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 method Static member StartsWith(String, String, String, 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

Community Additions

ADD
Show:
© 2014 Microsoft