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