StringAssertions.Match Method
Definition
Asserts that the string matches the specified regular expression pattern.
c#
public AssertionsChain<StringAssertions, string> Match(string pattern);Parameters
| Name | Type | Description |
|---|---|---|
pattern | String | The regular expression pattern to match. |
Returns
AssertionsChain<StringAssertions, String>
An AssertionsChain<TAssertions, T> for chaining further assertions.