Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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");
            }
        }