Skip to content

StringAssertions.NotMatch Method

Definition

Asserts that the string does not match the specified regular expression pattern.

public StringAssertionsChain NotMatch(string pattern);

Parameters

Name Type Description
pattern String The regular expression pattern the string should not match.

Returns

StringAssertionsChain

A StringAssertionsChain for chaining further assertions.