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

Commented Feature: Don't always throw when a circular dependency is detected [11831]

$
0
0
Just started using your library and so far I find it excellent. One thing though: I use it for comparing NHibernate objects and sometimes I have objects with bi-directional references. The assertions fails and states that a cyclic reference was detected. Could it be possible though to configure that instead of throwing an exception on a cyclic reference that it should rather just not follow that reference and still complete the rest of the comparison successfully?
Comments: ** Comment from web user: dennisdoomen **

I think we misunderstood the requirement. It should be configurable (through the fluent API). By default it should still throw, but by including a fluent property or method you can instruct it to ignore it for a particular assertion. The current change is breaking the existing behavior.


Viewing all articles
Browse latest Browse all 1402

Trending Articles



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