Abacus.DoublePrecision.Vector2Tests.TestStaticFn_TransformNormal_ii C# (CSharp) Method

TestStaticFn_TransformNormal_ii() private method

private TestStaticFn_TransformNormal_ii ( ) : void
return void
        public void TestStaticFn_TransformNormal_ii ()
        {
            Matrix44 rotmat = Matrix44.Identity;
            var tests = new Vector2[]
            {
                new Vector2 (21, -532),
                new Vector2 (21, +532),
                new Vector2 (1, -1),
                new Vector2 (-2435, -2),
            };

            foreach (var test in tests)
            {
                Vector2 normal = test;
                Vector2 result;
                Assert.Throws(
                    typeof(ArgumentOutOfRangeException),
                    () =>
                    Vector2.TransformNormal(ref normal, ref rotmat, out result)
                );
            }
        }
Vector2Tests