Exemplo n.º 1
0
        public void CalculateTest(double firstValue, double expected)
        {
            var calculator = new ArccosxCalculator();
            var result     = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, result, 0.0001);
        }
Exemplo n.º 2
0
        public void ExceptionByRangeTest()
        {
            var calculator = new ArccosxCalculator();

            Assert.Throws <Exception>(() => calculator.Calculate(-2));
        }