Abacus.SinglePrecision.Vector3Tests.TestDivision C# (CSharp) Méthode

TestDivision() private méthode

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

            var result_1a = a / b;

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

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