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

Commented Issue: Improved exception message for string comparison [12422]

$
0
0
When comparing long strings, the exception message only tells me that the string is "too short", but it doesn't say how long it is or should have been or where the difference is.

The assertions in NUnit actually gives a better clue here, for instance;
"Expected string length 370 but was 368. Strings differ at index 1."
Comments: Associated with changeset 80959: When strings differ in length, it will report the expected and actual lengths as part of the failure messages.
Fixes some unit tests because of the extended messages when using structural equality comparisons.

Viewing all articles
Browse latest Browse all 1402

Trending Articles



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