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

Commented Feature: Allow for custom IValueFormatters [12364]

$
0
0
I have some cases where I override ToString on my class under test but I'd prefer to use the DefaultValueFormatter as it display nicer formatted results for me (though there are a few properties I would like to omit). There a number ways to fix this but in the end I think allowing the user to setup their own IValueFormatter(s) would be great.
Comments: ** Comment from web user: swythan **

MbUnit has this capability. You basically just put a [Formatter] attribute on a static method somewhere in you test assembly.

See: http://gallio.org/wiki/doku.php?id=mbunit:custom_behaviors:formatter

We use it to get sensible output for a class that has a ridiculously large number of properties (including nested properties).


Viewing all articles
Browse latest Browse all 1402

Trending Articles



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