コード例 #1
0
        public void TestMethodDivideMinus()
        {
            CalculatorBC.Calculator calculator = new CalculatorBC.Calculator();

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

            Assert.AreNotEqual(calculator.GetResult(), 2);
        }
コード例 #2
0
        public void TestMethodSumPlus()
        {
            CalculatorBC.Calculator calculator = new CalculatorBC.Calculator();

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

            Assert.AreEqual(calculator.GetResult(), 4);
        }
コード例 #3
0
 public Form1()
 {
     InitializeComponent();
     calculatorProcessor = new CalculatorBC.Calculator();
 }