Skip to content

StringAssertions.Match Method ​

Definition ​

Asserts that the string matches the specified regular expression pattern.

c#
public AssertionsChain<StringAssertions, string> Match(string pattern);

View source

Parameters ​

NameTypeDescription
patternStringThe regular expression pattern to match.

Returns ​

AssertionsChain<StringAssertions, String>

An AssertionsChain<TAssertions, T> for chaining further assertions.