To make sure that two lists are the same, in nunit, we can use CollectionAssert.AreEquivalent
to check that these two lists contain the same elements ( orders not important).
But how to check whether two List<List<T>>
are equivalent? The idea is that if one List<T>
has the same elements as the other List<T>
( again, order not important) then they are equal.