fluentassertions / fluentassertions/fluentassertions.reactive

Request: .Should().PushAnySatisfying(..)

Đang mở
#2 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
1
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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:

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.