public void SimpleTest(double firstarg, double expected) { Log10 calc = new Log10(); double result = calc.Calc(firstarg); Assert.AreEqual(expected, result); }
public void LogarithmOfZeroTest() { Log10 calc = new Log10(); Assert.Throws <Exception>(() => calc.Calc(-2)); //сбой теста }