public void CanSerializeAGenericListOfClasses()
 {
     var doc = new Document("A", new[] { new Document("B", "b") });
     var o = new GenericListOfClasses();
     o.A = new List<GenericListOfClassesA> { new GenericListOfClassesA() { B = "b" } };
     string bson = Serialize<GenericListOfClasses>(o);
     string expected = Serialize(doc);
     Assert.AreEqual(expected, bson);
 }
        public void CanSerializeAGenericListOfClasses()
        {
            var doc = new Document("A", new[] { new Document("B", "b") });
            var o   = new GenericListOfClasses();

            o.A = new List <GenericListOfClassesA> {
                new GenericListOfClassesA()
                {
                    B = "b"
                }
            };
            string bson     = Serialize <GenericListOfClasses>(o);
            string expected = Serialize(doc);

            Assert.AreEqual(expected, bson);
        }