Abacus.SinglePrecision.Vector4Tests.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)
            {
                Vector4 a = GetNextRandomVector4();
                Vector4 b = GetNextRandomVector4();

                Vector4 result;
                Vector4.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 ));
                Assert.That(result.Z, Is.EqualTo(a.Z > b.Z ? a.Z : b.Z ));
                Assert.That(result.W, Is.EqualTo(a.W > b.W ? a.W : b.W ));
            }
        }
Vector4Tests