public void Lessers() { SqlInt16 Test10 = new SqlInt16(10); SqlInt16 Test10II = new SqlInt16(10); SqlInt16 Test110 = new SqlInt16(110); // LessThan() Assert.IsTrue(SqlInt16.LessThan(Test10, Test110).Value, "Test#1"); Assert.IsTrue(!SqlInt16.LessThan(Test110, Test10).Value, "Test#2"); Assert.IsTrue(!SqlInt16.LessThan(Test10II, Test10).Value, "Test#3"); // LessThanOrEqual () Assert.IsTrue(SqlInt16.LessThanOrEqual(Test10, Test110).Value, "Test#4"); Assert.IsTrue(!SqlInt16.LessThanOrEqual(Test110, Test10).Value, "Test#5"); Assert.IsTrue(SqlInt16.LessThanOrEqual(Test10II, Test10).Value, "Test#6"); Assert.IsTrue(SqlInt16.LessThanOrEqual(Test10II, SqlInt16.Null).IsNull, "Test#7"); }
public void Lessers() { SqlInt16 Test10 = new SqlInt16(10); SqlInt16 Test10II = new SqlInt16(10); SqlInt16 Test110 = new SqlInt16(110); // LessThan() Assert.True(SqlInt16.LessThan(Test10, Test110).Value); Assert.True(!SqlInt16.LessThan(Test110, Test10).Value); Assert.True(!SqlInt16.LessThan(Test10II, Test10).Value); // LessThanOrEqual () Assert.True(SqlInt16.LessThanOrEqual(Test10, Test110).Value); Assert.True(!SqlInt16.LessThanOrEqual(Test110, Test10).Value); Assert.True(SqlInt16.LessThanOrEqual(Test10II, Test10).Value); Assert.True(SqlInt16.LessThanOrEqual(Test10II, SqlInt16.Null).IsNull); }