1
Vote

Fluent Assertions should not format exceptions using the default formatter

description

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.

comments

dennisdoomen wrote Jan 7 at 6:00 PM

How do you propose we deal with this?