Пример #1
0
            public void CalculateTest(double firstValue, double secondValue, double expected)
            {
                var calculator   = new Substract();
                var actualResult = calculator.Calculate(firstValue, secondValue);

                Assert.AreEqual(expected, actualResult);
            }
Пример #2
0
        public void Calculate(double firstInput, double secondInput, double output)
        {
            var calculator = new Substract();
            var testResult = calculator.Calculate(firstInput, secondInput);
            var result     = output;

            Assert.AreEqual(testResult, result);
        }