TEST(iCalendarJournal, ObjectDataTests){
- CalendarEventObject TestJournal;
- ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestJournal.LoadFile("iCalendarEvent-Load2.vcf"));
+ CalendarJournalObject TestJournal;
+ ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestJournal.LoadFile("iCalendarJournal-Load2.vcf"));
ASSERT_EQ(CALENDAROBJECTVALID_OK, TestJournal.ValidBaseObject());
// Tests for DTSTAMP.
- ASSERT_EQ("20160122T124100Z", TestJournal.DateTimeStampData);
+ ASSERT_EQ("20160131T141500Z", TestJournal.DateTimeStampData);
ASSERT_EQ("OTHER=PARAM", TestJournal.DateTimeStampTokens);
+ // Tests for UID.
+
+ ASSERT_EQ("b3a16392-ad86-4061-be53-c215af2306c1", TestJournal.UniqueID);
+ ASSERT_EQ("UNIQUEPARAM=CERTAINLY;OKAY=MAYBENOT", TestJournal.UniqueIDTokens);
+
}
\ No newline at end of file