Matcher unorderedMatches(Iterable expected)

Returns a matcher which matches Iterables whose elements match the matchers in expected, but not necessarily in the same order.

Note that this is O(n^2) and so should only be used on small objects.

Source

Matcher unorderedMatches(Iterable expected) => new _UnorderedMatches(expected);