Shouldly
Search…
Match

ShouldMatch

1
var target = "Homer Simpson";
2
target.ShouldMatch("Bart .*");
Copied!
Exception
1
target
2
should match
3
"Bart .*"
4
but was
5
"Homer Simpson"
Copied!

ShouldNotMatch

1
var target = "Homer Simpson";
2
target.ShouldNotMatch("Homer .*");
Copied!
Exception
1
target should not match "Homer .*" but did
Copied!
Last modified 1yr ago
Copy link