New Post: new[] { "ab" }.Should().Equal("ab") fails
Hi! This fails: Â Â new[] { "ab" }.Should().Equal("ab"); this is OK: Â Â Â new[] { "ab" }.Should().Equal(new[] { "ab" }); This happens because Equal has overload that takes IEnumerable and string is...
View ArticleNew Post: The name BeEquivalentTo() is misleading for strings
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...
View ArticleNew Post: new[] { "ab" }.Should().Equal("ab") fails
I think you're right. But I vaguely recall running into the limitations of the extension method compiler syntax. I'll check again. Â
View ArticleNew Post: Method proposal: str.Should().BeBlank()
My idea is to call a string "blank" when it is null or empty or whitespace-only. Microsoft in .Net 4 came up with the name IsNullOrWhiteSpace but it's too long to my taste so I use alias "IsBlank". In...
View ArticleNew Post: Method proposal: str.Should().BeBlank()
We could as well add IsEmptyOrWhiteSpace but I would rather not to.
View ArticleNew Post: Method proposal: str.Should().BeBlank()
I think IsBlank() as a combination of IsEmpty() or IsNull() sounds great. If you will, add it as a feature...
View ArticleCreated Task: Create A4 cheat sheet [10813]
Create an A4-sized cheat sheet with an overview of the supported extension syntax.
View ArticleCreated Issue: When a different exception is detected, it should include the...
Currently, when another exception is thrown than the one expected, it is difficult to determine what went wrong, because the Message and Stacktrace is not shown.
View ArticleSource code checked in, #65910
Implemented missing main logic for myString.Should().NotContain(...)
View ArticleClosed Feature: Add myString.Should().NotContain() and...
Comments: Implemented in rev 65910, 65942
View ArticleClosed Feature: Add myString.Should().ContainEquivalentOf("abc") [10740]
Comments: Revision 65943
View ArticleSource code checked in, #65944
Unified null and empty string handling in [Not]Contain[EquivalentOf] method family
View Article