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

TestNegation() private method

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

            var result_1a = -a;

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

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