Example #1
0
        public void CalculateTest2()
        {
            IExpression exp = new Or(new Number(4), new Number(2.5));

            Assert.AreEqual(7, exp.Calculate());
        }
Example #2
0
        public void CalculateTest4()
        {
            var exp = new Or(new Bool(false), new Bool(false));

            Assert.AreEqual(false, exp.Calculate());
        }
Example #3
0
        public void CalculateTest1()
        {
            IExpression exp = new Or(new Number(1), new Number(2));

            Assert.AreEqual(3, exp.Calculate());
        }