public void TestArrayArrayNull([Values(false, true)] bool compile) { var tm = TypeModel.Create(); tm.AutoCompile = compile; var source = new ArrayArray(); var copy = tm.DeepClone(source); Assert.That(copy.Values, Is.EqualTo(source.Values)); }
public void TestArrayArrayDirect([Values(false, true)] bool compile, [Values(false, true)] bool forceSerialization) { var tm = TypeModel.Create(); tm.AutoCompile = compile; tm.ForceSerializationDuringClone = forceSerialization; var source = ArrayArray.CreateFilled().Values; var copy = tm.DeepClone(source); Assert.That(copy, Is.EqualTo(source)); }
public void TestArrayArray([Values(false, true)] bool compile) { var tm = TypeModel.Create(); tm.AutoCompile = compile; var source = ArrayArray.CreateFilled(); var copy = tm.DeepClone(source); Assert.That(copy.Values, Is.EqualTo(source.Values)); if (compile) { tm.Compile("arrayarray", "arrayarray.dll"); PEVerify.AssertValid("arrayarray.dll"); } }