public void Power_Accumulator(double a, double b, double c, double result, double tolerance) { var uut = new CalculatorUnit(); uut.Power(a, b); Assert.That(uut.Power(c), Is.EqualTo(result).Within(tolerance)); }
public double Power_Accumulator_OneParameter(double exponent) { var uut = new CalculatorUnit(); return(uut.Power(exponent)); }
public double Power(double a, double b) { var uut = new CalculatorUnit(); return(uut.Power(a, b)); }