Began to implement collection handling.
[shibboleth/cpp-xmltooling.git] / xmltoolingtest / UnmarshallingTest.h
index d4ba4f6..a5c87a4 100644 (file)
@@ -108,7 +108,8 @@ public:
         auto_ptr<SimpleXMLObject> sxObject(dynamic_cast<SimpleXMLObject*>(u->unmarshall(doc->getDocumentElement(),true)));\r
         TS_ASSERT(sxObject.get()!=NULL);\r
 \r
-        TSM_ASSERT_EQUALS("Number of child elements was not expected value", 2, sxObject->getSimpleXMLObjects().size());\r
+        ListOf(SimpleXMLObject) kids=sxObject->getSimpleXMLObjects();\r
+        TSM_ASSERT_EQUALS("Number of child elements was not expected value", 2, kids.size());\r
     }\r
 \r
     void testUnmarshallingWithUnknownChild() {\r