public void AddHistory() { String exp = "12 + 1="; _historyPage.selectHistory(); _calcStandardView.EvaluateStringInput(exp); String ans = _calculatorResults.ReturnCalculatorResults(); Assert.AreEqual(exp + " " + ans, _historyPage.getFirstHistoryEvent()); }
public void AdditionWithGenerator() { for (int i = 1; i < 10; i++) { string exp = SimpleArithmeticGenerator.GenerateExpression(i, new bool[] { true, false, false, false }); string ans = SimpleArithmeticGenerator.ArithmeticEvaluator(exp); _calcStandardView.EvaluateStringInput(exp); Assert.AreEqual(ans, _calculatorResults.ReturnCalculatorResults()); _calcStandardView.ClearBtn.Click(); } }