From: Steve Brokenshire Date: Mon, 25 Jan 2016 21:21:50 +0000 (+0000) Subject: Added unit tests for DTEND in iCalendarEvent/ObjectDataTests. X-Git-Tag: release-0.02~652 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=9c3c0995d9d48834db89ceb9ced0e0ede21b165b;p=xestiacalendar%2F.git Added unit tests for DTEND in iCalendarEvent/ObjectDataTests. --- diff --git a/source/tests/xestiacalendar_icaleventload.h b/source/tests/xestiacalendar_icaleventload.h index 8523da2..d81dd6c 100644 --- a/source/tests/xestiacalendar_icaleventload.h +++ b/source/tests/xestiacalendar_icaleventload.h @@ -178,5 +178,17 @@ TEST(iCalendarEvent, ObjectDataTests){ ASSERT_EQ("FREQ=DAILY;COUNT=10", TestEvent.RecurranceRuleData); ASSERT_EQ("TEST=DATA", TestEvent.RecurranceRuleDataTokens); + + // Tests for DTEND. + + ASSERT_EQ("20160124T183000Z", TestEvent.DateTimeEndData); + ASSERT_EQ("DATE-TIME", TestEvent.DateTimeEndDataValue); + ASSERT_EQ("Europe/Truro", TestEvent.DateTimeEndDataTimeZoneID); + ASSERT_EQ("PARAMFOUR=YES;PARAMTHREE=NO", TestEvent.DateTimeEndDataTokens); + // Tests for DURATION. (Done in another file called + // iCalendarEvent-Load3.vcf). + + + } \ No newline at end of file