示例#1
0
文件: Test.cs 项目: chakarov/Clonus
 public void Clone_WithObject_WithNullArrayProperty_ShouldWork()
 {
     var original = new TestObject_WithArrayField();
     var clone = Cloner.Clone(original, CloneMethod.Deep);
     Assert.IsNull(clone.Names);
 }
示例#2
0
文件: Test.cs 项目: chakarov/Clonus
 public void Clone_WithObject_WithEmptyArrayProperty_ShouldWork()
 {
     var original = new TestObject_WithArrayField();
     original.Names = new string[] { };
     var clone = Cloner.Clone(original, CloneMethod.Deep);
     Assert.AreEqual(original.Names.Length, clone.Names.Length);
 }