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

TestStaticFn_CatmullRom_iii() private method

private TestStaticFn_CatmullRom_iii ( ) : void
return void
        public void TestStaticFn_CatmullRom_iii ()
        {
            var a = GetNextRandomVector4();
            var b = GetNextRandomVector4();
            var c = GetNextRandomVector4();
            var d = GetNextRandomVector4();

            Double half; Maths.Half(out half);

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

            for (Int32 idx = 0; idx < tests.Length; ++idx)
            {
                Vector4 result;

                Assert.Throws(
                    typeof(ArgumentOutOfRangeException),
                    () =>
                        Vector4.CatmullRom (
                            ref a, ref b, ref c, ref d, ref tests[idx], out result)
                );
            }
        }
Vector4Tests