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

Closed Issue: StackOverflowException while formatting error message [11172]

$
0
0
When for example two objects reference each other over properties and FluentAssertions wants to build an error message then the DefaultValueFormatter causes a StackoverflowException because it loops endlessly over the properties from one object to the other and back and forth ...

See attachment for a sample reproducing the problem.

It would be nice if FluentAssertions could detect cycles, but maybe it is simple enough to somehow prevent the error message to be built or limit it to a certain depth (could even be hard-coded I think - error message would be too long anyway).

Viewing all articles
Browse latest Browse all 1402

Trending Articles



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