ASSERT_EQ("20160123T081100Z", TestEvent.DateTimeCreatedData);
ASSERT_EQ("CARAMEL=PLEASE", TestEvent.DateTimeCreatedTokens);
+
+ // Tests for DESCRIPTION.
+
+ std::string DescriptionData;
+ std::string DescriptionAltRep;
+ std::string DescriptionLanguage;
+ std::string DescriptionTokens;
+
+ if (TestEvent.DescriptionList.begin() != TestEvent.DescriptionList.end()){
+ DescriptionData = TestEvent.DescriptionList[0];
+ }
+
+ if (TestEvent.DescriptionListAltRep.begin() != TestEvent.DescriptionListAltRep.end()){
+ DescriptionAltRep = TestEvent.DescriptionListAltRep[0];
+ }
+ if (TestEvent.DescriptionListAltRep.begin() != TestEvent.DescriptionListAltRep.end()){
+ DescriptionLanguage = TestEvent.DescriptionListLanguage[0];
+ }
+
+ if (TestEvent.DescriptionListTokens.begin() != TestEvent.DescriptionListTokens.end()){
+ DescriptionTokens = TestEvent.DescriptionListTokens[0];
+ }
+
+ ASSERT_EQ("This is a description of the event.", DescriptionData);
+ ASSERT_EQ("null:nodata", DescriptionAltRep);
+ ASSERT_EQ("kw", DescriptionLanguage);
+ ASSERT_EQ("EXAMPLE=TOKEN;MOREDATA=YES", DescriptionTokens);
+
+ // Tests for GEO.
+
+ ASSERT_EQ("5.0;5.0", TestEvent.GeographicData);
+ ASSERT_EQ("EXAMPLE=MEEP", TestEvent.GeographicTokens);
+
}
\ No newline at end of file