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