From: Steve Brokenshire Date: Sun, 31 Jan 2016 14:31:26 +0000 (+0000) Subject: Added unit tests for UID in iCalendarJournal/ObjectDataTests. X-Git-Tag: release-0.02~496 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=1913a598a271d676b240bc2d5cc79e2a178be08e;p=xestiacalendar%2F.git Added unit tests for UID in iCalendarJournal/ObjectDataTests. --- diff --git a/source/tests/xestiacalendar_icaljournalload.h b/source/tests/xestiacalendar_icaljournalload.h index 9c06acc..c9284a2 100644 --- a/source/tests/xestiacalendar_icaljournalload.h +++ b/source/tests/xestiacalendar_icaljournalload.h @@ -30,13 +30,18 @@ TEST(iCalendarJournal, BasicTests){ 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