public void GetHashCode_WhenNotEquivalent_AreNotEqual() { var info1 = new ExecutableParameterInfo("name", "one", "two"); var info2 = new ExecutableParameterInfo("name", "one", "three"); info1.GetHashCode().Should().NotBe(info2.GetHashCode()); }
public void GetHashCode_WhenEquivalentButValuesInDifferentOrder_AreEqual() { var info1 = new ExecutableParameterInfo("name", "one", "two"); var info2 = new ExecutableParameterInfo("name", "two", "one"); info1.GetHashCode().Should().Be(info2.GetHashCode()); }