Esempio n. 1
0
 public void TestLessThan()
 {
     var lt = new LessThan(new Constant("23"), new Constant("12"));
     Assert.IsFalse((bool) lt.Evaluate(new Reflection(this)));
     lt = new LessThan(new Constant("12"), new Constant("23"));
     Assert.IsTrue((bool) lt.Evaluate(new Reflection(this)));
     lt = new LessThan(new Constant("12"), new Constant("12"));
     Assert.IsFalse((bool) lt.Evaluate(new Reflection(this)));
 }
Esempio n. 2
0
        public void TestLessThan()
        {
            var lt = new LessThan(new Constant("23"), new Constant("12"));

            Assert.IsFalse((bool)lt.Evaluate(new Reflection(this)));
            lt = new LessThan(new Constant("12"), new Constant("23"));
            Assert.IsTrue((bool)lt.Evaluate(new Reflection(this)));
            lt = new LessThan(new Constant("12"), new Constant("12"));
            Assert.IsFalse((bool)lt.Evaluate(new Reflection(this)));
        }