コード例 #1
0
        public void ACOSCalculator(
            double firstValue,
            double expected)
        {
            ACOSCalculator calculator = new ACOSCalculator();
            double         actual     = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actual, 0.001);
        }
コード例 #2
0
        public void ACOSCalculator()
        {
            ACOSCalculator calculator = new ACOSCalculator();

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