public void Should_Have_Same_Hash_Code_When_Same_Elements() { var toppingOne = new Topping(new[] { "pepperoni", "beef" }); var toppingTwo = new Topping(new[] { "beef", "pepperoni" }); Assert.AreEqual(toppingOne.GetHashCode(), toppingTwo.GetHashCode()); }