예제 #1
0
        public void CalculationTest(double value, double answer)
        {
            var    calculator = new Arccos();
            double actual     = calculator.calculate(value);

            Assert.AreEqual(answer, actual, 0.001);
        }
예제 #2
0
        public void NegativeArccosTest()
        {
            var calculator = new Arccos();

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