コード例 #1
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));
        }
コード例 #2
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");
            }
        }