예제 #1
0
        public void Rect3DEquals()
        {
            var val1 = new Rect3D(0, 1, 2, 3, 4, 5);
            var val2 = new Rect3D(6, 7, 8, 9, 10, 11);

            Assert.True(val1.Equals(val1));
            Assert.False(val1.Equals(val2));
            Assert.True(val1 == val1);
            Assert.False(val1 == val2);
            Assert.False(val1 != val1);
            Assert.True(val1 != val2);
            Assert.NotEqual(val1.GetHashCode(), val2.GetHashCode());
        }