How to check that each collection object corresponds to a given predicate? For example: check for each element (from this collection) that it matches the given predicate ( MyPredicate). The code should look something like this:
collection.Should().AllMatch(item => MyPredicate(item));
Is something like this accessible or do I need to write it myself?
source
share