Exemple #1
0
        public void CalculateGreaterTrueTest2()
        {
            var parameters = new ParameterCollection() { new Parameter("x", 10) };
            var lessThen = new GreaterOrEqual(new Variable("x"), new Number(10));

            Assert.Equal(true, lessThen.Execute(parameters));
        }
Exemple #2
0
        public void CalculateGreaterFalseTest()
        {
            var parameters = new ParameterCollection() { new Parameter("x", 0) };
            var lessThen = new GreaterOrEqual(new Variable("x"), new Number(10));

            Assert.AreEqual(false, lessThen.Calculate(parameters));
        }