示例#1
0
        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);
        }
示例#2
0
        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);
        }