Skip to content

Count with predicate #11

Closed
Closed
@jnyrup

Description

@jnyrup

When using the Count method with a predicate overload the predicate is not taken into account.

list.Count(e => e > 1).Should().Be(2);

is simplified into:

list.Should().HaveCount(2);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions