Skip to content

Request: .Should().PushAnySatisfying(..) #2

@jeffijoe

Description

@jeffijoe

Description

Just started using FA.Reactive and it's awesome, great work!

I have a suggestion for an assertion similar to SatisfyRespectively for collection assertions: PushAnySatisfying

Use Case

I am looking for an occurrence of a particular element that satisfies some constraints. I don't care about the ordering, hence the Any of PushAnySatisfying.

Example usage:

observable.Observe()
    .Should()
    .PushAnySatisfying(e => {
        e.Property.Should().Be("value");
        e.OtherProperty.Should().Be("other value");
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions