From: Steve Brokenshire Date: Sun, 31 Jan 2016 18:11:20 +0000 (+0000) Subject: Added unit tests for DTEND in iCalendarJournal/ObjectDataTests. X-Git-Tag: release-0.02~425 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=e2399fe74e642cf9935943f2a29bfdb4d5cf3bdc;p=xestiacalendar%2F.git Added unit tests for DTEND in iCalendarJournal/ObjectDataTests. --- diff --git a/source/tests/xestiacalendar_icalfreebusyload.h b/source/tests/xestiacalendar_icalfreebusyload.h index 76bd923..cae967d 100644 --- a/source/tests/xestiacalendar_icalfreebusyload.h +++ b/source/tests/xestiacalendar_icalfreebusyload.h @@ -86,5 +86,12 @@ TEST(iCalendarFreeBusy, ObjectDataTests){ ASSERT_EQ("DATE-TIME", TestFreeBusy.DateTimeStartDataValue); ASSERT_EQ("Europe/Truro", TestFreeBusy.DateTimeStartDataTimeZoneID); ASSERT_EQ("PARAMONE=YES;PARAMTWO=NO", TestFreeBusy.DateTimeStartDataTokens); + + // Tests for DTEND. + + ASSERT_EQ("20160131T183000Z", TestFreeBusy.DateTimeEndData); + ASSERT_EQ("DATE-TIME", TestFreeBusy.DateTimeEndDataValue); + ASSERT_EQ("Europe/Truro", TestFreeBusy.DateTimeEndDataTimeZoneID); + ASSERT_EQ("PARAMFOUR=YES;PARAMTHREE=NO", TestFreeBusy.DateTimeEndDataTokens); } \ No newline at end of file