public void FindNthRoot_PowerIsNegariveNumber_ThrowsArgumentException(double number, int power, double epsilon) { Assert.Throws <ArgumentException>(() => RealNumberOperations.FindNthRoot(number, power, epsilon)); }
public void FindNthRoot_PositiveResultsTests(double number, int power, double epsilon, double expected) { double actual = RealNumberOperations.FindNthRoot(number, power, epsilon); Assert.AreEqual(expected, actual, epsilon); }
public void FindNthRoot_IncorrectEpsilon_ThrowsArgumentException(double number, int power, double epsilon) { Assert.Throws <ArgumentException>(() => RealNumberOperations.FindNthRoot(number, power, epsilon)); }