Esempio n. 1
0
        public void DivideCalculatorTest()
        {
            SharedCalculator _calculatorTest = new SharedCalculator();
            double           result          = _calculatorTest.Divide(4, 2);

            Assert.AreEqual(2, result);
        }
Esempio n. 2
0
        public void SubtractCalculatorTest()
        {
            SharedCalculator _calculatorTest = new SharedCalculator();
            double           result          = _calculatorTest.Subtract(9, 8);

            Assert.AreEqual(1, result);
        }
Esempio n. 3
0
        public void MultiplyCalculatorTest()
        {
            SharedCalculator _calculatorTest = new SharedCalculator();
            double           result          = _calculatorTest.Multiply(1, 2);

            Assert.AreEqual(2, result);
        }
Esempio n. 4
0
        public void AddCalculatorTest()
        {
            SharedCalculator _calculatorTest = new SharedCalculator();
            double           result          = _calculatorTest.Add(1, 2);

            Assert.AreEqual(3, result);
        }