예제 #1
0
        public void CloningBear()
        {
            Bear e2 = new Bear("e2", Gender.Male, 0, 0, 0);

            Animal e3 = e2.Clone();

            Assert.AreEqual(e2.Name, e3.Name);
            Assert.AreEqual(e2.Id, e3.Id);
            Assert.AreNotSame(e2, e3);
        }