Beispiel #1
0
        private void divButton_Click(object sender, EventArgs e)
        {
            var number = long.Parse(tbx_Number.Text);

            calculatorProcessor.divide(number);
            tbx_Result.Text = calculatorProcessor.GetResult().ToString();
        }
Beispiel #2
0
        public void TestMethodDivideMinus()
        {
            CalculatorBC.Calculator calculator = new CalculatorBC.Calculator();

            calculator.add(2);
            calculator.divide(2);

            Assert.AreNotEqual(calculator.GetResult(), 2);
        }