Quantcast
Channel: Fluent Assertions
Viewing all articles
Browse latest Browse all 1402

Closed Issue: Should().Match() doesnt work [11765]

$
0
0
I'm trying to use simple regex expressions, but none work.

Using the example that was given on documentation, heres the output (a non-match).

Expected string to match the equivalent of
"\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{{2,4}}\b", but
"edernucci@hotmail.com" does not match.
Comments:

It's a documentation error. We never supported regular expressions and I think we'll never will. In my opinion, the usage of regular expressions in unit tests defies the idea of having intention revealing unit tests. Yes, there may be people fluent in regular expressions, but he majority of the people aren't.


Viewing all articles
Browse latest Browse all 1402

Trending Articles