public void CalculateTest(double firstValue, double secondValue, double expected) { var calculator = new PowerOfDivision(); var actualResult = calculator.Calculate(firstValue, secondValue); Assert.AreEqual(expected, actualResult); }
public void NegativePowerOfDivisionTest() { var calculator = new PowerOfDivision(); Assert.Throws <Exception>(() => calculator.Calculate(1, 0)); }