public void TestNullLists([Values(false, true)] bool compiled) { _model = TypeModel.Create(); _model.AutoCompile = compiled; var obj = new ListContainerClass(); var clone = _model.DeepClone(obj); Assert.IsNull(clone.Data); Assert.IsNull(clone.Data2); }
public void TestEmptyLists([Values(false, true)] bool compiled) { _model = TypeModel.Create(); _model.AutoCompile = compiled; var obj = new ListContainerClass() { Data = new List <Data>(), Data2 = new List <int>() }; var clone = _model.DeepClone(obj); Assert.IsNotNull(clone.Data); Assert.AreEqual(0, clone.Data.Count); Assert.AreEqual(0, clone.Data2.Count); }