public void CalculateTest2() { IExpression exp = new Or(new Number(4), new Number(2.5)); Assert.AreEqual(7, exp.Calculate()); }
public void CalculateTest4() { var exp = new Or(new Bool(false), new Bool(false)); Assert.AreEqual(false, exp.Calculate()); }
public void CalculateTest1() { IExpression exp = new Or(new Number(1), new Number(2)); Assert.AreEqual(3, exp.Calculate()); }