Пример #1
0
        public void Greaters()
        {
            // GreateThan ()
            Assert.True(!SqlDateTime.GreaterThan(_test1, _test2).Value);
            Assert.True(SqlDateTime.GreaterThan(_test2, _test1).Value);
            Assert.True(!SqlDateTime.GreaterThan(_test2, _test3).Value);

            // GreaterTharOrEqual ()
            Assert.True(!SqlDateTime.GreaterThanOrEqual(_test1, _test2).Value);
            Assert.True(SqlDateTime.GreaterThanOrEqual(_test2, _test1).Value);
            Assert.True(SqlDateTime.GreaterThanOrEqual(_test2, _test3).Value);
        }
Пример #2
0
        public void Greaters()
        {
            // GreateThan ()
            Assert.IsTrue(!SqlDateTime.GreaterThan(Test1, Test2).Value, "#H01");
            Assert.IsTrue(SqlDateTime.GreaterThan(Test2, Test1).Value, "#H02");
            Assert.IsTrue(!SqlDateTime.GreaterThan(Test2, Test3).Value, "#H03");

            // GreaterTharOrEqual ()
            Assert.IsTrue(!SqlDateTime.GreaterThanOrEqual(Test1, Test2).Value, "#H04");
            Assert.IsTrue(SqlDateTime.GreaterThanOrEqual(Test2, Test1).Value, "#H05");
            Assert.IsTrue(SqlDateTime.GreaterThanOrEqual(Test2, Test3).Value, "#H06");
        }