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