New Post: Why doesn't NotBeSameAs() work with GenericCollectionAssertions?
What do you mean "I can't"? Does it compile?
View ArticleNew Post: Why does Should().ContainSingle() accept predicate mandatory
Regarding your first question, you're correct. HaveCount() is the only option right now. Regarding your 2nd question, that's by design. Chaining essentially applies to the original type of the subject.
View ArticleNew Post: Why doesn't NotBeSameAs() work with GenericCollectionAssertions?
Ah, I understand now. Since your subject-under-test is an IEnumerable<T>, it will use the GenericCollectionAssertions rather than the ObjectAssertions. And that is missing the (Not)BeSameAs()....
View ArticleNew Post: Why does Should().ContainSingle() accept predicate mandatory
Would you agree to add an overload to mimic LINQ behavior? And don't you have any plans in addition toAnd add something like AndSubject to switch from original target under assertion to underlying/new?...
View ArticleNew Post: Why does Should().ContainSingle() accept predicate mandatory
I'm not sure. We started with the idea of chaining. But since then we've run in so many compiler limitations that we're not sure anymore if the entire .And. construct is still useful.
View ArticleNew Post: Mappings in object graph comparisons
Hi I have written an extension for property mapping that can be used like this: result.ShouldBeEquivalentTo(expected, opt => opt.Mapping<YType>(x => x.Foo, y => y.Bar));publicclass...
View ArticleCreated Issue: Test framework detection using assembly scanning is case...
LateBoundTestFramework checks if an assembly with the given name is loaded. But the check is case sensitive. Therefore in our case the NUnit cannot be determined - NUnitTestFramework defines...
View ArticleEdited Issue: Test framework detection using assembly scanning is case...
LateBoundTestFramework checks if an assembly with the given name is loaded. But the check is case sensitive. Therefore in our case the NUnit cannot be determined - NUnitTestFramework defines...
View ArticleCommented Issue: Test framework detection using assembly scanning is case...
LateBoundTestFramework checks if an assembly with the given name is loaded. But the check is case sensitive. Therefore in our case the NUnit cannot be determined - NUnitTestFramework defines...
View ArticleCreated Issue: Inconsistent ShouldBeEquivalentTo() behaviour for collections...
I'm having trouble comparing lists of objects that come back in an indeterminate order. I thought `ShouldBeEquivalentTo()` would take care of this for me, but it doesn't seem to :(Check out the...
View ArticleCommented Issue: Inconsistent ShouldBeEquivalentTo() behaviour for...
I'm having trouble comparing lists of objects that come back in an indeterminate order. I thought `ShouldBeEquivalentTo()` would take care of this for me, but it doesn't seem to :(Check out the...
View ArticleCommented Issue: Inconsistent ShouldBeEquivalentTo() behaviour for...
I'm having trouble comparing lists of objects that come back in an indeterminate order. I thought `ShouldBeEquivalentTo()` would take care of this for me, but it doesn't seem to :(Check out the...
View ArticleCommented Issue: Inconsistent ShouldBeEquivalentTo() behaviour for...
I'm having trouble comparing lists of objects that come back in an indeterminate order. I thought `ShouldBeEquivalentTo()` would take care of this for me, but it doesn't seem to :(Check out the...
View ArticleCommented Issue: Inconsistent ShouldBeEquivalentTo() behaviour for...
I'm having trouble comparing lists of objects that come back in an indeterminate order. I thought `ShouldBeEquivalentTo()` would take care of this for me, but it doesn't seem to :(Check out the...
View ArticleCommented Issue: Inconsistent ShouldBeEquivalentTo() behaviour for...
I'm having trouble comparing lists of objects that come back in an indeterminate order. I thought `ShouldBeEquivalentTo()` would take care of this for me, but it doesn't seem to :(Check out the...
View ArticleCommented Issue: Inconsistent ShouldBeEquivalentTo() behaviour for...
I'm having trouble comparing lists of objects that come back in an indeterminate order. I thought `ShouldBeEquivalentTo()` would take care of this for me, but it doesn't seem to :(Check out the...
View ArticleCommented Issue: Inconsistent ShouldBeEquivalentTo() behaviour for...
I'm having trouble comparing lists of objects that come back in an indeterminate order. I thought `ShouldBeEquivalentTo()` would take care of this for me, but it doesn't seem to :(Check out the...
View ArticleEdited Issue: Test framework detection using assembly scanning is case...
LateBoundTestFramework checks if an assembly with the given name is loaded. But the check is case sensitive. Therefore in our case the NUnit cannot be determined - NUnitTestFramework defines...
View Article