예제 #1
0
        public void TestEqualAndHash()
        {
            TrTransform a = TrTransform.TRS(new Vector3(0, 2, 3), new Quaternion(4, 5, 6, 7), 8);
            TrTransform b = a;

            Assert.IsTrue(a.Equals(b));
            Assert.IsTrue(b.Equals(a));
            Assert.IsTrue(a == b);
            Assert.IsTrue(b == a);
            Assert.IsTrue(!(a != b));
            Assert.IsTrue(!(b != a));
            Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
        }