From e2399fe74e642cf9935943f2a29bfdb4d5cf3bdc Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 18:11:20 +0000 Subject: [PATCH] Added unit tests for DTEND in iCalendarJournal/ObjectDataTests. --- source/tests/xestiacalendar_icalfreebusyload.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5