public void CorrectlyHandlesSerializationOfCollectionsWithAbstractClasses()
            {
                var collection = new CatelModelAdvancedSerializationFacts.ContainerClass();

                collection.Items.Add(new CatelModelAdvancedSerializationFacts.DerivedClass {
                    Name = "item 1"
                });

                TestSerializationOnAllSerializers((serializer, config, description) =>
                {
                    var clonedGraph = SerializationTestHelper.SerializeAndDeserialize(collection, serializer, config);

                    Assert.AreEqual(collection, clonedGraph, description);
                }, false);
            }
            public void CorrectlyHandlesSerializationOfCollectionsWithAbstractClasses()
            {
                var collection = new CatelModelAdvancedSerializationFacts.ContainerClass();
                collection.Items.Add(new CatelModelAdvancedSerializationFacts.DerivedClass { Name = "item 1" });

                TestSerializationOnAllSerializers((serializer, description) =>
                {
                    var clonedGraph = SerializationTestHelper.SerializeAndDeserialize(collection, serializer);

                    Assert.AreEqual(collection, clonedGraph, description);
                }, false);
            }