Ejemplo n.º 1
0
        public void CloneCollection()
        {
            var user = new UserCollections();

            user.Add(new User()
            {
                Name = "Alen"
            });
            user.TestValue = "Alen";
            user.us        = new User()
            {
                Name = "Toma"
            };
            var cloned = DeepCloner.Clone(user);
        }
Ejemplo n.º 2
0
        public void CloneCollection()
        {
            var user = new UserCollections();

            user.Add(new User()
            {
                Name = "Alen"
            });
            user.TestValue = "Alen";
            user.us        = new User()
            {
                Name = "Toma"
            };
            var cloned = DeepCloner.Clone(user);

            Assert.AreEqual(cloned.us.Name, user.us.Name);
            Assert.AreEqual(cloned.TestValue, "Alen");
        }