Beispiel #1
0
        public void CloneTest()
        {
            int           degreesOfFreedom = 5;
            TDistribution target           = new TDistribution(degreesOfFreedom);
            TDistribution clone            = (TDistribution)target.Clone();

            Assert.AreNotSame(target, clone);
            Assert.AreEqual(target.DegreesOfFreedom, clone.DegreesOfFreedom);
            Assert.AreEqual(target.Mean, clone.Mean);
            Assert.AreEqual(target.Variance, clone.Variance);
        }