public void Clone_WithObject_WithNullArrayProperty_ShouldWork() { var original = new TestObject_WithArrayField(); var clone = Cloner.Clone(original, CloneMethod.Deep); Assert.IsNull(clone.Names); }
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); }