Пример #1
0
        public void TestEqual()
        {
            var left  = new Integer32(599);
            var right = new Integer32(599);

            Assert.Equal(599.GetHashCode(), left.GetHashCode());
            Assert.Equal(left, right);
            Assert.True((Integer32)null == (Integer32)null);
            Assert.NotEqual(null, right);
            Assert.NotEqual(left, null);
            Assert.True(left.Equals((object)right));
            Assert.True(left.Equals(right));
            Assert.True(left != null);
        }