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

New Post: The name BeEquivalentTo() is misleading for strings

$
0
0

I started thinking about strings as enumeration of chars after running into this issue: new[] { "ab" }.Should().Equal("ab") fails.

I know about extending with extension methods, I just try to stick to the defaults as much as possible and avoid writing extra.

I have been using my own set of extension methods for fluent testing, then I found FluentAssertions which appeared to be more comprehensive and readable so I don't want to write my own stuff anymore :)


Viewing all articles
Browse latest Browse all 1402

Trending Articles



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