public void Serializer_should_serialize_object_array() { var test = new TestObjectWithContacts(new[] { new Contact(new CfContact(1,"Name","Last","90210","14252163710","14252163710","14252163710",null,null,null)), new Contact(new CfContact(1,"Name2","Last2","90210","14252163710","14252163710","14252163710",null,null,null)) }); Assert.IsTrue(_serializer.GetProperties(test).Any(p => p.Key == "Contact[0][lastName]" && p.Value == "Last")); }
public void Serializer_should_serialize_object_array() { var test = new TestObjectWithContacts(new[] { new Contact(new CfContact(1, "Name", "Last", "90210", "14252163710", "14252163710", "14252163710", null, null, null)), new Contact(new CfContact(1, "Name2", "Last2", "90210", "14252163710", "14252163710", "14252163710", null, null, null)) }); Assert.IsTrue(_serializer.GetProperties(test).Any(p => p.Key == "Contact[0][lastName]" && p.Value == "Last")); }