コード例 #1
0
 public void ArsinTest(double first, double expected)
 {
     IOneArgumentsCalculator calculator = new ArcsinCalculator();
     double result = calculator.Calculator(first);
     Assert.AreEqual(expected, result, 0.0001);
 }
コード例 #2
0
 public void ArsinFailTest()
 {
     ArcsinCalculator calculator = new ArcsinCalculator();
     Assert.Throws<Exception>(() => calculator.Calculator(60));
 }