The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
StringAssert::Matches Method
Verifies that a specified string matches a regular expression.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Matches(String^, Regex^) | Verifies that the specified string matches the regular expression. |
![]() ![]() | Matches(String^, Regex^, String^) | Verifies that the specified string matches the regular expression. Displays a message if the assertion fails. |
![]() ![]() | Matches(String^, Regex^, String^, array<Object^>^) | Verifies that the specified string matches the regular expression. Displays a message if the assertion fails, and applies the specified formatting to it. |
Show:

