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

TestDivision() private method

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

            var result_1a = a / b;

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

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