contains Exactly
Asserts the array contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
See also
contains At Least
Asserts the list contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
1, 2 containsExactly 2, 1 fails 1, 2, 2 containsExactly 2, 1 fails 1, 2 containsExactly 1, 2, 2 fails
See also
contains At Least
contains Only
contains Exactly In Any Order
Asserts the sequence contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
1, 2 containsExactly 2, 1 fails 1, 2, 2 containsExactly 2, 1 fails 1, 2 containsExactly 1, 2, 2 fails
See also
contains At Least
contains Only
contains Exactly In Any Order