Accord.Tests.Statistics.TDistributionTest.CloneTest C# (CSharp) Method

CloneTest() private method

private CloneTest ( ) : void
return void
        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);
        }