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

TestStaticFn_Max() private method

private TestStaticFn_Max ( ) : void
return void
        public void TestStaticFn_Max ()
        {
            for(Int32 i = 0; i < 100; ++i)
            {
                Vector2 a = GetNextRandomVector2();
                Vector2 b = GetNextRandomVector2();

                Vector2 result;
                Vector2.Max (ref a, ref b, out result);

                Assert.That(result.X, Is.EqualTo(a.X > b.X ? a.X : b.X ));
                Assert.That(result.Y, Is.EqualTo(a.Y > b.Y ? a.Y : b.Y ));
            }
        }
Vector2Tests