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

Commented Issue: ignore white spaces leading because message [11421]

$
0
0
When I write a because message starting with "because", FluentAssertions is clever enough to omit the "because" it normally writes of its own.

In more complex scenarios, I'd like to preceed the because with new lines: Should().Be("bla", "\n\rbecause ...");

Therefore, it'd be cool if all leading white space woud be ignored in the check whether the "because" has to be added or not.
Comments: ** Comment from web user: mopdam **

I have fixed this in changeset #71125.

You can now use either
"\r\nbecause the reason."
or
"\r\nthe reason.".

Both will result in an error message like: "Expected it to fail\r\nbecause the reason."


Viewing all articles
Browse latest Browse all 1402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>