예제 #1
0
        public void TestNotEqualToByte()
        {
            var a = Convert.ToByte("1");
            var b = Convert.ToByte("2");

            Assert.IsTrue(NotEqualToComparison.NotEqualTo(a, b));
        }
예제 #2
0
        public void TestNotEqualToDate()
        {
            var now = DateTime.Now;

            Assert.IsTrue(NotEqualToComparison.NotEqualTo(now, "09/06/2018 10:21:00.000"));
            Assert.IsFalse(NotEqualToComparison.NotEqualTo(DateTime.Parse("09/06/2018 10:21:00.000"),
                                                           "09/06/2018 10:21:00.000"));
            Assert.IsTrue(NotEqualToComparison.NotEqualTo(DateTime.Today.AddHours(1), "today"));
            Assert.IsTrue(NotEqualToComparison.NotEqualTo(DateTime.Today, "today -1"));
            Assert.IsTrue(NotEqualToComparison.NotEqualTo(DateTime.Today, "today +1"));
        }
예제 #3
0
 public void TestNotEqualToStringNegative()
 {
     Assert.IsFalse(NotEqualToComparison.NotEqualTo(";wpioemcopiwecmwc", ";wpioemcopiwecmwc"));
 }
예제 #4
0
 public void TestNotEqualToBool()
 {
     Assert.IsTrue(NotEqualToComparison.NotEqualTo(true, false));
     Assert.IsFalse(NotEqualToComparison.NotEqualTo(false, false));
 }
예제 #5
0
 public void TestNotEqualToChar()
 {
     Assert.IsTrue(NotEqualToComparison.NotEqualTo('h', 'g'));
 }
예제 #6
0
 public void TestNotEqualToFloat()
 {
     Assert.IsTrue(NotEqualToComparison.NotEqualTo(1289.00F, 1290.00F));
 }
예제 #7
0
 public void TestNotEqualToDouble()
 {
     Assert.IsTrue(NotEqualToComparison.NotEqualTo(1289.00, 1290.00));
 }
예제 #8
0
 public void TestNotEqualToUInt64()
 {
     Assert.IsTrue(NotEqualToComparison.NotEqualTo(ulong.MaxValue, ulong.MinValue));
 }
예제 #9
0
 public void TestNotEqualToUInt32()
 {
     Assert.IsTrue(NotEqualToComparison.NotEqualTo(uint.MaxValue, uint.MinValue));
 }
예제 #10
0
 public void TestNotEqualToInt()
 {
     Assert.IsTrue(NotEqualToComparison.NotEqualTo(1289, 1290));
 }
예제 #11
0
 public void TestNotEqualToString()
 {
     Assert.IsTrue(NotEqualToComparison.NotEqualTo(";wpioemcopiwecmwc", ";wpioemcopiwecmwC"));
 }
예제 #12
0
 public void TestNotEqualToNull()
 {
     //Assert.IsTrue(EqualToComparison.EqualTo(null, "1"));
     Assert.IsTrue(NotEqualToComparison.NotEqualTo(null, ";wpioemcopiwecmwC"));
 }
예제 #13
0
 public void TestNotEqualToIntNegative()
 {
     Assert.IsFalse(NotEqualToComparison.NotEqualTo(1, 1));
 }