Quantcast
Channel: Fluent Assertions
Browsing all 1402 articles
Browse latest View live
↧

New Post: Why doesn't NotBeSameAs() work with GenericCollectionAssertions?

What do you mean "I can't"? Does it compile?

View Article


New Post: Why doesn't NotBeSameAs() work with GenericCollectionAssertions?

No, it doesn't.

View Article


New 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 Article

New 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 Article

New 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 Article


New 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 Article

New 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 Article

New Post: Mappings in object graph comparisons

Cool!

View Article


Created 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


Edited 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

Commented 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

Created 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 Article

Commented 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 Article


Commented 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 Article

Commented 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 Article


Commented 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 Article

Commented 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 Article


Commented 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 Article

Commented 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 Article

Edited 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
Browsing all 1402 articles
Browse latest View live


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