public void Clone_WithCloneableObject_ShouldCloneObjectGraph() { var original = new TestCloneable { Id = 1 }; var clone = Cloner.Clone(original, CloneMethod.Deep); Assert.AreEqual(42, clone.Id); }
public object Clone() { var t = new TestCloneable { Id = 42 }; return t; }