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

TestStaticFn_Normalise_i() private method

private TestStaticFn_Normalise_i ( ) : void
return void
        public void TestStaticFn_Normalise_i()
        {
            {
                Vector4 a = Vector4.Zero;

                Vector4 b;

                Assert.Throws(
                    typeof(ArgumentOutOfRangeException),
                    () =>
                    Vector4.Normalise(ref a, out b)
                );
            }

            {
                Vector4 a = new Vector4(
                    Double.MaxValue,
                    Double.MaxValue,
                    Double.MaxValue,
                    Double.MaxValue);

                Vector4 b;

                Assert.Throws(
                    typeof(ArgumentOutOfRangeException),
                    () =>
                    Vector4.Normalise(ref a, out b)
                );
            }
        }
Vector4Tests