示例#1
0
        public void CloningEagle()
        {
            Eagle e2 = new Eagle("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);
        }