示例#1
0
        public void CalculateLessTrueTest2()
        {
            var parameters = new ParameterCollection() { new Parameter("x", 10) };
            var lessThen = new LessOrEqual(new Variable("x"), new Number(10));

            Assert.AreEqual(true, lessThen.Calculate(parameters));
        }
示例#2
0
        public void CalculateLessFalseTest()
        {
            var parameters = new ParameterCollection() { new Parameter("x", 666) };
            var lessThen = new LessOrEqual(new Variable("x"), new Number(10));

            Assert.Equal(false, lessThen.Execute(parameters));
        }