public void TestArrayArrayArrayNull([Values(false, true)] bool compile) { var tm = TypeModel.Create(); tm.AutoCompile = compile; var source = new ArrayArrayArray(); var copy = tm.DeepClone(source); Assert.That(copy.Values, Is.EqualTo(source.Values)); }
public void TestArrayArrayArrayDirect([Values(false, true)] bool compile, [Values(false, true)] bool forceSerialization) { var tm = TypeModel.Create(); tm.AutoCompile = compile; tm.ForceSerializationDuringClone = forceSerialization; var source = ArrayArrayArray.CreateFilled().Values; var copy = tm.DeepClone(source); Assert.That(copy, Is.EqualTo(source)); }
public void TestArrayArrayArray([Values(false, true)] bool compile) { var tm = TypeModel.Create(); tm.AutoCompile = compile; var source = ArrayArrayArray.CreateFilled(); var schema = tm.GetDebugSchema(typeof(ArrayArrayArray)); var copy = tm.DeepClone(source); Assert.That(copy.Values, Is.EqualTo(source.Values)); }