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

Edited Issue: Fluent Assertions should not format exceptions using the default formatter [12461]

$
0
0
We use a custom ApplicationErrorException which implements IEnumerable returning a list of parameters associated with that exception.

When the verification fails Fluent Assertions formats the exception using the default formatter, which can result in a message like:

Expected System.ApplicationException, but found {[EntityType, Book], [Key, 123]}.

Which is obviously not providing enough information.

Viewing all articles
Browse latest Browse all 1402

Trending Articles



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