-
Notifications
You must be signed in to change notification settings - Fork 1
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
Request: .Should().PushAnySatisfying(..) #2
Comments
Hey @jeffijoe, sorry for the long delay, this seems to have somehow slipped my attention... Good suggestion, I'll take a look at it! |
No worries at all, thank you for the response! |
I went with a slightly different syntax (using predicates, see #5) which is more in line with the collection assertions of the main library: observable.Observe()
.Should()
.PushMatch(e => e.Property.Equals("value") && e.OtherProperty.Equals("other value")); Hope this will satisfy your needs... |
That makes sense, I noticed those as well much later after posting this. Thank you so much! 🙏 |
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
ofPushAnySatisfying
.Example usage:
The text was updated successfully, but these errors were encountered: