public void TestArrayArrayCustomDirect([Values(false, true)] bool compile) { var tm = TypeModel.Create(); tm.AutoCompile = compile; var source = ArrayArrayCustom.CreateFilled().Values; var copy = tm.DeepClone(source); Assert.That(copy, Is.EqualTo(source)); }
public void TestArrayArrayCustomNull([Values(false, true)] bool compile) { var tm = TypeModel.Create(); tm.AutoCompile = compile; var source = new ArrayArrayCustom(); var copy = tm.DeepClone(source); Assert.That(copy.Values, Is.EqualTo(source.Values)); }
public void TestArrayArrayCustom([Values(false, true)] bool compile) { var tm = TypeModel.Create(); tm.AutoCompile = compile; var source = ArrayArrayCustom.CreateFilled(); var copy = tm.DeepClone(source); Assert.That(copy.Values, Is.EqualTo(source.Values)); if (compile) { tm.Compile("ArrayArrayCustom", "ArrayArrayCustom.dll"); PEVerify.AssertValid("ArrayArrayCustom.dll"); } }