コード例 #1
0
        public void TestGreaterThanOrEqualToByte()
        {
            var a = Convert.ToByte("2");
            var b = Convert.ToByte("1");
            var c = Convert.ToByte("2");

            Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo(a, b));
            Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo(a, c));
        }
コード例 #2
0
 public void TestGreaterThanOrEqualToIntNegative()
 {
     Assert.IsFalse(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo(1, 2));
 }
コード例 #3
0
 public void TestGreaterThanOrEqualToChar()
 {
     Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo('h', 'g'));
     Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo('g', 'g'));
 }
コード例 #4
0
 public void TestGreaterThanOrEqualToFloat()
 {
     Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo(1289.00F, 128.00F));
     Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo(1289.00F, 1289.00F));
 }
コード例 #5
0
 public void TestGreaterThanOrEqualToDouble()
 {
     Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo(1289.00, 128.00));
     Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo(1289.00, 1289.00));
 }
コード例 #6
0
 public void TestGreaterThanOrEqualToUInt64()
 {
     Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo(ulong.MaxValue, ulong.MinValue));
     Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo(ulong.MaxValue, ulong.MaxValue));
 }
コード例 #7
0
 public void TestGreaterThanOrEqualToInt()
 {
     Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo(1289, 128));
     Assert.IsTrue(GreaterThanOrEqualToComparison.GreaterThanOrEqualTo(1289, 1289));
 }