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