public void FindNthRoot_ThrowArgumentException(double a, int n, double eps) { Assert.Throws <ArgumentException>(() => FindNthRoot.SqrtN(a, n, eps)); }
public void FindNthRootTestCase(double a, int n, double eps, double expected) { double actual = FindNthRoot.SqrtN(a, n, eps); Assert.AreEqual(actual, expected, eps); }