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: AB_dreeve **

It seems that right now you assign the formatters to a list which we cannot access to make changes. Allowing us to Add and Insert into this list would be a simple solution.

Also adding the MbUnit attribute like functionality as another built in formatter might be nice as well, but if we keep your work down to a minimum then we have a better chance of seeing this :-).

Changing accessibility to that list or adding hooks for adding/inserting the custom formatters seems sufficient to me.


Viewing all articles
Browse latest Browse all 1402

Trending Articles



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