示例#1
0
        public void RelativeVector3GetHashCode()
        {
            tlog.Debug(tag, $"RelativeVector3GetHashCode START");

            var testingTarget = new RelativeVector3(0.5f, 0.6f, 0.7f);

            Assert.IsNotNull(testingTarget, "Can't create success object RelativeVector3");
            Assert.IsInstanceOf <RelativeVector3>(testingTarget, "Should be an instance of RelativeVector3 type.");

            var result = testingTarget.GetHashCode();

            Assert.IsTrue(result >= Int32.MinValue && result <= Int32.MaxValue, "The value of hash is out of Integer range");

            testingTarget.Dispose();
            tlog.Debug(tag, $"RelativeVector3GetHashCode END (OK)");
        }