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

            Assert.AreEqual(expected, actualResult, 0.1);
        }
Пример #2
0
        public void CalculateTest(double firstValue, double expected)

        {
            var calculator = new ECalculator();
            var result     = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, result, 0.0001);
        }