Ejemplo n.º 1
0
 public void ExceptionTest()
 {
     ISingleCalculator calculator = new Ln();
     Assert.Throws<ArgumentException>(() => calculator.Calculate(-10));
 }
Ejemplo n.º 2
0
 public void BasicTestSqrt(double first, double expected)
 {
     ISingleCalculator calculator = new Ln();
     double result = calculator.Calculate(first);
     Assert.AreEqual(expected,result,0.001);
 }