Example #1
0
        public void NullNotEqual()
        {
            var reference = new IndirectReference(1267775544, 690);

            // ReSharper disable once SuspiciousTypeConversion.Global
            Assert.False(reference.Equals(null));
        }
Example #2
0
        public void TwoIndirectReferenceNotEqual()
        {
            var reference1 = new IndirectReference(1574, 690);
            var reference2 = new IndirectReference(12, 0);

            Assert.False(reference1.Equals(reference2));
        }
Example #3
0
        public void TwoIndirectReferenceEqual()
        {
            var reference1 = new IndirectReference(1574, 690);
            var reference2 = new IndirectReference(1574, 690);

            Assert.True(reference1.Equals(reference2));
        }
Example #4
0
        public void OtherObjectNotEqual()
        {
            var reference = new IndirectReference(1267775544, 690);
            var obj       = "test";

            // ReSharper disable once SuspiciousTypeConversion.Global
            Assert.False(reference.Equals(obj));
        }