Пример #1
0
        public void Greaters()
        {
            SqlInt16 Test10   = new SqlInt16(10);
            SqlInt16 Test10II = new SqlInt16(10);
            SqlInt16 Test110  = new SqlInt16(110);

            // GreateThan ()
            Assert.True(!SqlInt16.GreaterThan(Test10, Test110).Value);
            Assert.True(SqlInt16.GreaterThan(Test110, Test10).Value);
            Assert.True(!SqlInt16.GreaterThan(Test10II, Test10).Value);

            // GreaterTharOrEqual ()
            Assert.True(!SqlInt16.GreaterThanOrEqual(Test10, Test110).Value);
            Assert.True(SqlInt16.GreaterThanOrEqual(Test110, Test10).Value);
            Assert.True(SqlInt16.GreaterThanOrEqual(Test10II, Test10).Value);
        }
Пример #2
0
        public void Greaters()
        {
            SqlInt16 Test10   = new SqlInt16(10);
            SqlInt16 Test10II = new SqlInt16(10);
            SqlInt16 Test110  = new SqlInt16(110);

            // GreateThan ()
            Assert.IsTrue(!SqlInt16.GreaterThan(Test10, Test110).Value, "Test#1");
            Assert.IsTrue(SqlInt16.GreaterThan(Test110, Test10).Value, "Test#2");
            Assert.IsTrue(!SqlInt16.GreaterThan(Test10II, Test10).Value, "Test#3");

            // GreaterTharOrEqual ()
            Assert.IsTrue(!SqlInt16.GreaterThanOrEqual(Test10, Test110).Value, "Test#4");
            Assert.IsTrue(SqlInt16.GreaterThanOrEqual(Test110, Test10).Value, "Test#5");
            Assert.IsTrue(SqlInt16.GreaterThanOrEqual(Test10II, Test10).Value, "Test#6");
        }
Пример #3
0
        public void Greaters()
        {
            SqlInt16 test10   = new SqlInt16(10);
            SqlInt16 test10II = new SqlInt16(10);
            SqlInt16 test110  = new SqlInt16(110);

            // GreateThan ()
            Assert.False(SqlInt16.GreaterThan(test10, test110).Value);
            Assert.True(SqlInt16.GreaterThan(test110, test10).Value);
            Assert.False(SqlInt16.GreaterThan(test10II, test10).Value);

            // GreaterTharOrEqual ()
            Assert.False(SqlInt16.GreaterThanOrEqual(test10, test110).Value);
            Assert.True(SqlInt16.GreaterThanOrEqual(test110, test10).Value);
            Assert.True(SqlInt16.GreaterThanOrEqual(test10II, test10).Value);
        }