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