public void Generalized_TestInvalidArgs() { Assert.Throws <ArgumentException>(() => ContinuedFraction.Generalized(null, null)); Assert.Throws <ArgumentException>(() => ContinuedFraction.Generalized(null, new double[] { })); Assert.Throws <ArgumentException>(() => ContinuedFraction.Generalized(new double[] { 1, 1 }, new double[] { })); }
public void Generalized_Test(double[] a, double[] b, double expected) { Assert.That(ContinuedFraction.Generalized(a, b), Is.EqualTo(expected).Within(1.0e-14)); }