}
+ // Process the DURATION value.
+
+ if (DurationData.size() > 0){
+
+ DataLine += "DURATION";
+
+ if (DurationDataTokens.size() > 0){
+
+ DataLine += ";";
+ DataLine += DurationDataTokens;
+
+ }
+
+ DataLine += ":";
+ DataLine += DurationData;
+ DataLine += "\n";
+
+ DataLineProcessed = OutputText(&DataLine);
+
+ *SaveData += DataLineProcessed;
+
+ DataLine.clear();
+ DataLineProcessed.clear();
+
+ }
+
// Process the RRULE value.
if (RecurranceRuleData.size() > 0){
CalendarEventObject TestEvent;
CalendarEventObject TestEvent2;
+ CalendarEventObject TestEvent3;
// Load the test event.
ASSERT_EQ(SaveDataComparison, SaveData);
+ ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestEvent3.LoadFile("iCalendarEvent-Load3.vcf"));
+ ASSERT_EQ(CALENDAROBJECTVALID_OK, TestEvent3.ValidBaseObject());
+
+ SaveData.clear();
+
+ SaveDataComparison = "BEGIN:VCALENDAR\n"
+ "VERSION:2.0\n"
+ "PRODID:-//Xestia//Calendar Unit Testing//KW\n"
+ "BEGIN:VEVENT\n"
+ "UID:b3a16392-ad86-4061-be53-c215af2306e1\n"
+ "DTSTAMP:20160127T111200Z\n"
+ "DTSTART:20160122T183000Z\n"
+ "DURATION;TEST=EXAMPLE:PT1H\n"
+ "END:VEVENT\n"
+ "END:VCALENDAR";
+
+ TestEvent3.SaveString(&SaveData);
+
+ ASSERT_EQ(SaveDataComparison, SaveData);
+
}
\ No newline at end of file