public void KolmogorovSmirnovTestConstructorTest3()
{
// Test if the sample's distribution is greater 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.SampleIsGreater);
Assert.AreEqual(distribution, target.TheoreticalDistribution);
Assert.AreEqual(KolmogorovSmirnovTestHypothesis.SampleIsGreater, target.Hypothesis);
Assert.AreEqual(DistributionTail.OneUpper, target.Tail);
Assert.AreEqual(0.238852, target.Statistic, 1e-5);
Assert.AreEqual(0.275544, target.PValue, 1e-5);
Assert.IsFalse(Double.IsNaN(target.Statistic));
}