예제 #1
0
        public void CalculateTest(double firstValue, double secondValue, double expected)
        {
            var calculator   = new Substraction();
            var actualResult = calculator.Calculate(firstValue, secondValue);

            Assert.AreEqual(expected, actualResult);
        }
예제 #2
0
        public void SubstactionTest(double first, double second, double expected)
        {
            ITwoArgumentsCalculator calculator = new Substraction();
            double result = calculator.Calculate(first, second);

            Assert.AreEqual(expected, result);
        }
        public void TestCalculate()
        {
            var operation = new Substraction();

            var answer = operation.Calculate(1.0, 2.0);

            Assert.AreEqual(-1.0, answer, 0.0001);
        }
예제 #4
0
            public void SubstractionTest()
            {
                var calculator = new Substraction();

                Assert.AreEqual(2, calculator.Calculate(3, 1));
            }