Ejemplo n.º 1
0
        public void RelativeVector2GetHashCode()
        {
            tlog.Debug(tag, $"RelativeVector2GetHashCode START");

            var testingTarget = new RelativeVector2(1.0f, 0.0f);

            Assert.IsNotNull(testingTarget, "Can't create success object RelativeVector2");
            Assert.IsInstanceOf <RelativeVector2>(testingTarget, "Should be an instance of RelativeVector2 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, $"RelativeVector2GetHashCode END (OK)");
        }