コード例 #1
0
        public void TestBooleanHashKey()
        {
            var true1 = new Boolean {
                Value = true
            };
            var true2 = new Boolean {
                Value = true
            };
            var false1 = new Boolean {
                Value = false
            };
            var false2 = new Boolean {
                Value = false
            };

            Assert.Equal(true1.HashKey(), true2.HashKey());
            Assert.Equal(false1.HashKey(), false2.HashKey());
            Assert.NotEqual(true1.HashKey(), false1.HashKey());
        }