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

TestStaticFn_Lerp_ii() private method

private TestStaticFn_Lerp_ii ( ) : void
return void
        public void TestStaticFn_Lerp_ii ()
        {
            Matrix44 a = GetNextRandomMatrix44();
            Matrix44 b = GetNextRandomMatrix44();

            Double half; Maths.Half(out half);

            var tests = new Double[] { 2, half + 1, -half, -1 };

            for( Int32 i = 0; i < tests.Length; ++i )
            {
                Matrix44 result;
                Assert.Throws(
                    typeof(ArgumentOutOfRangeException),
                    () =>
                        Matrix44.Lerp (
                            ref a, ref b, ref tests[i], out result)
                    );
            }
        }
    }
Matrix44Tests