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

TestNegation() private method

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

            var result_1a = -a;

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

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