public void NullNotEqual() { var reference = new IndirectReference(1267775544, 690); // ReSharper disable once SuspiciousTypeConversion.Global Assert.False(reference.Equals(null)); }
public void TwoIndirectReferenceNotEqual() { var reference1 = new IndirectReference(1574, 690); var reference2 = new IndirectReference(12, 0); Assert.False(reference1.Equals(reference2)); }
public void TwoIndirectReferenceEqual() { var reference1 = new IndirectReference(1574, 690); var reference2 = new IndirectReference(1574, 690); Assert.True(reference1.Equals(reference2)); }
public void OtherObjectNotEqual() { var reference = new IndirectReference(1267775544, 690); var obj = "test"; // ReSharper disable once SuspiciousTypeConversion.Global Assert.False(reference.Equals(obj)); }