I want to compare in C# two dictionaries with as keys a string and as value a list of ints. I assume two dictionaries to be equal when they both ha
string
int
Convert the dictionary to a KeyValuePair list and then compare as collections:
KeyValuePair
CollectionAssert.AreEqual( dict1.OrderBy(kv => kv.Key).ToList(), dict2.OrderBy(kv => kv.Key).ToList() );