public void Alpha_WrongValues(double d) { var i = (int)d; Assert.False(ErlangDistribution.AreValidParams(i, 1)); Assert.False(Dist.IsValidAlpha(i)); Assert.Throws <ArgumentOutOfRangeException>(() => { Dist.Alpha = i; }); }
public void Alpha_WrongValues(double d) { Assert.False(BinomialDistribution.AreValidParams(d, 1)); Assert.False(Dist.IsValidAlpha(d)); Assert.Throws <ArgumentOutOfRangeException>(() => { Dist.Alpha = d; }); }
public void Alpha_WrongValues(double d) { Assert.False(GeometricDistribution.IsValidParam(d)); Assert.False(Dist.IsValidAlpha(d)); Assert.Throws <ArgumentOutOfRangeException>(() => { Dist.Alpha = d; }); }