IterableChecks<T> extension

on

Properties

first Subject<T>
no setter
last Subject<T>
no setter
length Subject<int>
no setter
single Subject<T>
no setter

Methods

any(Condition<T> elementCondition) → void
Expects that the iterable contains at least on element such that elementCondition is satisfied.
contains(T element) → void
Expects that the iterable contains element according to Iterable.contains.
containsInOrder(Iterable<Object?> elements) → void
Expects that the iterable contains a value matching each expected value from elelements in the given order, with any extra elements between them.
deepEquals(Iterable<Object?> expected) → void
Expects that the iterable contains elements that are deeply equal to the elements of expected.
every(Condition<T> elementCondition) → void
Expects there are no elements in the iterable which fail to satisfy elementCondition.
isEmpty() → void
isNotEmpty() → void
pairwiseComparesTo<S>(List<S> expected, Condition<T> elementCondition(S), String description) → void
Expects that the iterable contains elements that correspond by the elementCondition exactly to each element in expected.
unorderedEquals(Iterable<T> expected) → void
Expects that the iterable contains elements which equal those of expected in any order.
unorderedMatches(Iterable<Condition<T>> expected) → void
Expects that the iterable contains elements which match all conditions of expected in any order.