public void Log10CalcTest(double first, double expected) { var calc = new Log10Calc(); double result = calc.Calculate(first); Assert.AreEqual(expected, result, 0.001); }
public void Againstzero() { var calc = new Log10Calc(); Assert.Throws <Exception>(() => calc.Calculate(-1)); }