private void divButton_Click(object sender, EventArgs e) { var number = long.Parse(tbx_Number.Text); calculatorProcessor.divide(number); tbx_Result.Text = calculatorProcessor.GetResult().ToString(); }
public void TestMethodDivideMinus() { CalculatorBC.Calculator calculator = new CalculatorBC.Calculator(); calculator.add(2); calculator.divide(2); Assert.AreNotEqual(calculator.GetResult(), 2); }