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