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