Пример #1
0
 public void Clone_WithCloneableObject_ShouldCloneObjectGraph()
 {
     var original = new TestCloneable
     {
         Id = 1
     };
     var clone = Cloner.Clone(original, CloneMethod.Deep);
     Assert.AreEqual(42, clone.Id);
 }
Пример #2
0
 public object Clone()
 {
     var t = new TestCloneable { Id = 42 };
     return t;
 }