public void TDistributionConstructorTest()
{
int degreesOfFreedom = 4;
TDistribution target = new TDistribution(degreesOfFreedom);
Assert.AreEqual(degreesOfFreedom, target.DegreesOfFreedom);
bool thrown = false;
try { target = new TDistribution(0); }
catch (ArgumentOutOfRangeException) { thrown = true; }
Assert.IsTrue(thrown);
thrown = false;
try { target = new TDistribution(-1); }
catch (ArgumentOutOfRangeException) { thrown = true; }
Assert.IsTrue(thrown);
}