public void ZTestConstructorTest4()
{
// Example from http://science.kennesaw.edu/~jdemaio/1107/hypothesis_testing.htm
double mean = 51.5;
double stdDev = 10;
int samples = 100;
double hypothesizedMean = 50;
// Null Hypothesis: mean = 58
// Alternative : mean != 58
OneSampleHypothesis hypothesis = OneSampleHypothesis.ValueIsDifferentFromHypothesis;
ZTest target = new ZTest(mean, stdDev, samples, hypothesizedMean, hypothesis);
Assert.AreEqual(1.5, target.Statistic, 0.01);
Assert.AreEqual(OneSampleHypothesis.ValueIsDifferentFromHypothesis, target.Hypothesis);
Assert.AreEqual(DistributionTail.TwoTail, target.Tail);
Assert.IsFalse(target.Significant);
}