コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }