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

TestDivision() private method

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

            var result_1a = a / b;

            Vector4 result_1b; Vector4.Divide(ref a, ref b, out result_1b);

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