예제 #1
0
 public void Can_serialize_ICollection()
 {
     var dto = new BreakerCollection
     {
         Blah = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
     };
     
     var from = Serialize(dto, includeXml: false);
     Assert.IsNotNull(from.Blah);
     Assert.AreEqual(dto.Blah.Count, from.Blah.Count);
     from.PrintDump();
 }
 public void Can_serialize_ICollection()
 {
     var dto = new BreakerCollection
     {
         Blah = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
     };
     
     var from = Serialize(dto, includeXml: false);
     Assert.IsNotNull(from.Blah);
     Assert.AreEqual(dto.Blah.Count, from.Blah.Count);
     from.PrintDump();
 }