public void TestEquals() { MultiSet <String> requirements = new MultiSet <string>(); requirements.Add("DAIRY"); requirements.Add("PLANT"); requirements.Add("PLANT"); MultiSet <String> available = new MultiSet <string>(); available.Add("PLANT"); available.Add("PLANT"); available.Add("DAIRY"); Assert.AreEqual(requirements, available); Assert.AreEqual <int>(requirements.GetHashCode(), available.GetHashCode()); }
public void TestEquals() { MultiSet<String> requirements = new MultiSet<string>(); requirements.Add("DAIRY"); requirements.Add("PLANT"); requirements.Add("PLANT"); MultiSet<String> available = new MultiSet<string>(); available.Add("PLANT"); available.Add("PLANT"); available.Add("DAIRY"); Assert.AreEqual(requirements, available); Assert.AreEqual<int>(requirements.GetHashCode(), available.GetHashCode()); }