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: .NET, WP7 and SL now will automatically find static methods annotated with the [ValueFormatter] attribute. WinRT doesn't support enumerating the assemblies in the AppDomain. However, the Formatter.Formatters collection is now public so you can add your own implementations as well.

Viewing all articles
Browse latest Browse all 1402

Trending Articles



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