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

New Post: Using FA for production (as opposite to unit test) code.

$
0
0

I'm looking for better assertions framework than built-in Debug.Assert and consider using FA for that purpose. It should be rather easy to disable it for Release build, but I would rather let it run in Release as well. The biggest problem is FA producing ambiguous exception messages in absence of PDB files - not only the source line numbers are missing, but the actual assertion expression is missing too, so all we get is, for example, in method Foo something which should not be null is null. If we have more than one assertion in that method - no way to tell which one failed.

I understand that it is not primary usage scenario for FA, but still hope to get a good advice how to tailor it to our needs or what other assertion library may suite our needs better.

 

Thank you!

Konstantin

 


Viewing all articles
Browse latest Browse all 1402

Trending Articles



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