Beispiel #1
0
        public void CalculateTest(double firstValue, double expected)
        {
            var calculator = new CtanxCalculator();
            var result     = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, result, 0.0001);
        }
Beispiel #2
0
        public void CtanxCalculator(
            double firstValue,
            double expected)
        {
            CtanxCalculator calculator = new CtanxCalculator();
            double          actual     = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actual, 0.001);
        }