public void PowTest(double first, double second, double expected) { ITwoArgumentsCalculator calculator = new Pow(); double result = calculator.Calculate(first, second); Assert.AreEqual(expected, result); }
public void PowByZeroTest(double first, double second) { ITwoArgumentsCalculator calculator = new Pow(); Assert.Throws<Exception>(() => calculator.Calculate(first, second)); }