Match
ShouldMatch
var target = "Homer Simpson";
target.ShouldMatch("Bart .*");
Exception
target
should match
"Bart .*"
but was
"Homer Simpson"
ShouldNotMatch
var target = "Homer Simpson";
target.ShouldNotMatch("Homer .*");
Exception
target should not match "Homer .*" but did
Last updated