public void NegativeFirstNumberTest() { IOneArgCalculator calculator = new Lg(); Assert.Throws<Exception>(() => calculator.Calculate(-1)); }
public void LgTest(double firstvalue, double expected) { IOneArgCalculator calculator = new Lg(); double result = calculator.Calculate(firstvalue); Assert.AreEqual(expected, result); }