Share via


StringAssert Members

Include Protected Members
Include Inherited Members

Verifies true/false propositions associated with strings in unit tests.

Methods

 

Name

Description

Public methodStatic member

Contains

Overloaded. Verifies that a specified string contains a specified substring. This method is case sensitive.

Public methodStatic member

DoesNotMatch

Overloaded. Verifies that a specified string does not match a regular expression.

Public methodStatic member

EndsWith

Overloaded. Verifies that a specified string ends with a specified substring. This method is case sensitive.

Public methodStatic member

Matches

Overloaded. Verifies that a specified string matches a regular expression.

Public methodStatic member

StartsWith

Overloaded. Verifies that a specified string begins with a specified substring. This method is case sensitive.

Top

See Also

Reference

StringAssert Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace