Beispiel #1
0
            public void PentagonCopyConstructor()
            {
                var len            = 15;
                var PentagonToCopy = new Pentagon(len);

                sut = new Pentagon(PentagonToCopy);

                Assert.That(sut.CalculateArea(), Is.EqualTo(PentagonToCopy.CalculateArea()));
                Assert.That(sut.CalculatePerimeter(), Is.EqualTo(PentagonToCopy.CalculatePerimeter()));
            }