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); }
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"); }