Abacus.DoublePrecision.Vector2Tests.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 = GetNextRandomVector2();
            var b = GetNextRandomVector2();
            var c = GetNextRandomVector2();
            var d = GetNextRandomVector2();

            Double half; Maths.Half(out half);

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

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

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