Exemplo n.º 1
0
        public void TestListListNull([Values(false, true)] bool compile)
        {
            var tm = TypeModel.Create();

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

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

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

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