Abacus.DoublePrecision.Vector3Tests.TestNegation C# (CSharp) Method

TestNegation() private method

Helper method for testing negation.
private TestNegation ( System.Vector3 a, System.Vector3 expected ) : void
a System.Vector3
expected System.Vector3
return void
        void TestNegation (Vector3 a, Vector3 expected )
        {
            // This test asserts the following:
            //   -a == expected

            var result_1a = -a;

            Vector3 result_1b; Vector3.Negate(ref a, out result_1b);

            Assert.That(result_1a, Is.EqualTo(expected));
            Assert.That(result_1b, Is.EqualTo(expected));
        }
Vector3Tests