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

New Post: Customizing reason display

$
0
0

Hi there, when using Should()... with a reason and reason parameters, is there any way to get Fluent Assertions to just throw the formatted reason as the assertion exception message, and not try to wrap it inside some other text?

If the reason is omitted then I find the default assertion messages quite helpful, but when I start using reasons in my assertions to add more contextual detail, it starts to look like gobbledygook because I am expected to construct the grammar of the reasons in a very specific fashion (according to the operator I used). This grammar varies across operators and I find it confusing, compared with the standard Assert conditions that don't do this.


Viewing all articles
Browse latest Browse all 1402

Trending Articles



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