public void KolmogorovSmirnovTestConstructorTest4()
{
// Test if the sample's distribution is smaller than a standard Normal distribution
double[] sample = { 0.621, 0.503, 0.203, 0.477, 0.710, 0.581, 0.329, 0.480, 0.554, 0.382 };
NormalDistribution distribution = NormalDistribution.Standard;
var target = new KolmogorovSmirnovTest(sample, distribution,
KolmogorovSmirnovTestHypothesis.SampleIsSmaller);
Assert.AreEqual(distribution, target.TheoreticalDistribution);
Assert.AreEqual(KolmogorovSmirnovTestHypothesis.SampleIsSmaller, target.Hypothesis);
Assert.AreEqual(DistributionTail.OneLower, target.Tail);
Assert.AreEqual(0.580432, target.Statistic, 1e-5);
Assert.AreEqual(0.000499, target.PValue, 1e-5);
Assert.IsFalse(Double.IsNaN(target.Statistic));
}