Beispiel #1
0
        public void TestArrayArrayArrayNull([Values(false, true)] bool compile)
        {
            var tm = TypeModel.Create();

            tm.AutoCompile = compile;
            var source = new ArrayArrayArray();
            var copy   = tm.DeepClone(source);

            Assert.That(copy.Values, Is.EqualTo(source.Values));
        }
Beispiel #2
0
        public void TestArrayArrayArrayDirect([Values(false, true)] bool compile, [Values(false, true)] bool forceSerialization)
        {
            var tm = TypeModel.Create();

            tm.AutoCompile = compile;
            tm.ForceSerializationDuringClone = forceSerialization;
            var source = ArrayArrayArray.CreateFilled().Values;
            var copy   = tm.DeepClone(source);

            Assert.That(copy, Is.EqualTo(source));
        }
Beispiel #3
0
        public void TestArrayArrayArray([Values(false, true)] bool compile)
        {
            var tm = TypeModel.Create();

            tm.AutoCompile = compile;
            var source = ArrayArrayArray.CreateFilled();
            var schema = tm.GetDebugSchema(typeof(ArrayArrayArray));
            var copy   = tm.DeepClone(source);

            Assert.That(copy.Values, Is.EqualTo(source.Values));
        }