CheckDiffForAll()

CollectionAssertHelper::CheckDiffForAll(const std::function<bool(int)>&, const System::SharedPtr<System::Collections::Generic::ICollection<int32_t>>&) method

Checks that all collection elements adhere the predicate.

static bool System::CollectionAssertHelper::CheckDiffForAll(const std::function<bool(int)> &pred, const System::SharedPtr<System::Collections::Generic::ICollection<int32_t>> &values)

Arguments

ParameterTypeDescription
predconst std::function<bool(int)>&Predicate to check.
valuesconst System::SharedPtr<System::Collections::Generic::ICollection<int32_t>>&Values to check.

Return Value

False if check fails for any element, true if all pass.

See Also