containsExactlyInAnyOrder
Asserts the iterable contains exactly the expected elements, in any order. Each value in expected must correspond to a matching value in actual, and visa-versa.
1, 2 containsExactlyInAnyOrder 2, 1 passes 1, 2, 2 containsExactlyInAnyOrder 2, 1 fails 1, 2 containsExactlyInAnyOrder 2, 2, 1 fails
See also
Asserts the sequence contains exactly the expected elements, in any order. Each value in expected must correspond to a matching value in actual, and visa-versa.
1, 2 containsExactlyInAnyOrder 2, 1 passes 1, 2, 2 containsExactlyInAnyOrder 2, 1 fails 1, 2 containsExactlyInAnyOrder 2, 2, 1 fails