コード例 #1
0
        public void GetHashCode_Differs_Given_Different_Key()
        {
            var k1 = new WaitKey(1, "test", 5m);
            var k2 = new WaitKey(2, "foo", 2.5m);

            Assert.NotEqual(k1.GetHashCode(), k2.GetHashCode());
        }
コード例 #2
0
        public void GetHashCode_Matches_Given_Identical_Key()
        {
            var k1 = new WaitKey(1, "test", 5m);
            var k2 = new WaitKey(1, "test", 5m);

            Assert.Equal(k1.GetHashCode(), k2.GetHashCode());
        }
コード例 #3
0
        public void GetHashCode_Returns_0_For_Null_Parts()
        {
            var k = new WaitKey();

            Assert.Equal(0, k.GetHashCode());
        }