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

TestStaticFn_SmoothStep_ii() private method

private TestStaticFn_SmoothStep_ii ( ) : void
return void
        public void TestStaticFn_SmoothStep_ii ()
        {
            var a = GetNextRandomVector4();
            var b = 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.SmoothStep (
                            ref a, ref b, ref tests[idx], out result)
                    );
            }
        }
Vector4Tests