private static void CaseMul() { var left = new SimpleExp(5); var right = new SimpleExp(2); var exp = new RegularExp(left, OpEnum.Mul, right); Assert.AreEqual(10, exp.GetEvaluateExpValue()); }
private static void CasePlus() { var left = new SimpleExp(5); var right = new SimpleExp(6); var exp = new RegularExp(left, OpEnum.Add, right); Assert.AreEqual(11, exp.GetEvaluateExpValue()); }