-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Count with predicate #11
Comments
should this case be ignored? there is an overload |
If you're updating the docs, there is a related example in there: - old: |
actual.Where(x => x.SomeProperty).Should().HaveCount(1);
new: |
actual.Should().ContainSingle(x => x.SomeProperty); And I would probably replace list.Count(e => e > 1).Should().Be(2); with list.Where(e => e > 1).Should().HaveCount(2); |
What do you mean with that? The |
@dennisdoomen he was talking about the analyzer... I meant that I wanted to see if it was possible to rewrite the assertion using that overload |
@dennisdoomen When using The |
When using the Count method with a predicate overload the predicate is not taken into account.
is simplified into:
The text was updated successfully, but these errors were encountered: