Beispiel #1
0
        public void CalculationAdditionTest(double firstArgument, double result)
        {
            var calculator   = new ArctanCalculator();
            var actualResult = calculator.Calculate(firstArgument);

            Assert.AreEqual(result, actualResult, 0.00001);
        }
Beispiel #2
0
        public void CalculationTest(double firstValue, double expected)
        {
            var calculator   = new ArctanCalculator();
            var actualResult = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actualResult, 0.01);
        }
Beispiel #3
0
        public void CalculateTest(double firstArgument, double expectedResult)
        {
            var calculator   = new ArctanCalculator();
            var actualResult = calculator.Calculate(firstArgument);

            Assert.AreEqual(expectedResult, actualResult, 0.001);
        }