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))); }
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))); }