public void ValidateGetMomentsFailsWithBadParameters(double a, double c, double k, double order) { var n = new Burr(a, c, k); Assert.That(() => n.GetMoment(order), Throws.ArgumentException); }
public void ValidateMoments(double a, double c, double k, int order, double value) { var n = new Burr(a, c, k); AssertHelpers.AlmostEqualRelative(value, n.GetMoment(order), lowPrecision); }