Assert that collection contains at least one element satisfying another assertion #2043
guythetechie
started this conversation in
Ideas
Replies: 1 comment
-
There's no elegant way to do that. The closest you can get is by using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say I have a collection:
I can validate all names have length 4 by:
To validate that at least one name satisfies the condition, I'm currently doing:
Is there a way to do this and keep the fluent syntax? Something like:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions