New check suggestion for collections
yhan opened this issue · 2 comments
yhan commented
May we have this option for collection, instead of
Check.That(milestones.All(x => HeIsANicePerson(x))).IsTrue();
provide this new check
Check.That(milestones).EachElementSatisfies( HeIsANicePerson );
dupdob commented
Please look into this
https://github.com/tpierrain/NFluent/wiki/Enumerable-types#containsonlyelementsthatmatchpredicate
I think it is what you are looking for!
yhan commented
Merci beaucoup :-)