-
Notifications
You must be signed in to change notification settings - Fork 732
Allow custom formatters to "kick in" for more specific types #309
Copy link
Copy link
Closed
Labels
Description
Custom formatters (I am referring to Formatters section in https://github.com/dennisdoomen/fluentassertions/wiki#extensibility) are right now selected by exact match of types:
Given #308 I wonder if it would be better to go by isAssignableFrom() instead? It would then be possible to implement a catch all custom formatter with object as an argument and completely disable the default formatter that builds the object's graph.
Or maybe introduce an interface that formatters would need to implement to give them (the formatters) the ability to respond to CanHandle() ?
Reactions are currently unavailable