Пример #1
0
        public void Greaters()
        {
            SqlDouble Test1  = new SqlDouble(1e100);
            SqlDouble Test11 = new SqlDouble(1e100);
            SqlDouble Test2  = new SqlDouble(64e164);

            // GreateThan ()
            Assert.True(!SqlDouble.GreaterThan(Test1, Test2).Value);
            Assert.True(SqlDouble.GreaterThan(Test2, Test1).Value);
            Assert.True(!SqlDouble.GreaterThan(Test1, Test11).Value);

            // GreaterTharOrEqual ()
            Assert.True(!SqlDouble.GreaterThanOrEqual(Test1, Test2).Value);
            Assert.True(SqlDouble.GreaterThanOrEqual(Test2, Test1).Value);
            Assert.True(SqlDouble.GreaterThanOrEqual(Test1, Test11).Value);
        }
Пример #2
0
        public void Greaters()
        {
            SqlDouble Test1  = new SqlDouble(1e100);
            SqlDouble Test11 = new SqlDouble(1e100);
            SqlDouble Test2  = new SqlDouble(64e164);

            // GreateThan ()
            Assert.IsTrue(!SqlDouble.GreaterThan(Test1, Test2).Value, "#I01");
            Assert.IsTrue(SqlDouble.GreaterThan(Test2, Test1).Value, "#I02");
            Assert.IsTrue(!SqlDouble.GreaterThan(Test1, Test11).Value, "#I03");

            // GreaterTharOrEqual ()
            Assert.IsTrue(!SqlDouble.GreaterThanOrEqual(Test1, Test2).Value, "#I04");
            Assert.IsTrue(SqlDouble.GreaterThanOrEqual(Test2, Test1).Value, "#I05");
            Assert.IsTrue(SqlDouble.GreaterThanOrEqual(Test1, Test11).Value, "#I06");
        }