public void CalculatorTest(double firstValue, double expected) { var calculator = new Exponent(); var actualResult = calculator.Calculate(firstValue); Assert.AreEqual(expected, actualResult); }
public void ExponentTest(double value, double expected) { var calculator = new Exponent(); var actualResult = calculator.Calculate(value); Assert.AreEqual(expected, actualResult, 0.001); }