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