MSTest provides CollectionAssert
class and based on this question I am comparing a returned Dictionary matches my expectations: .NET Dictionaries have same keys and values, but aren't "equal"
However then I deliberately populated my Dictionary in a different order to the returned version but with the exact same elements... now CollectionAssert.AreEqual
fails when I call:
CollectionAssert.AreEqual((ICollection)expected, (ICollection)ret)
This doesn't seem a very good equality test - do I need to roll my own or does MSTest provide something out of the box?