From 9c3c0995d9d48834db89ceb9ced0e0ede21b165b Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 25 Jan 2016 21:21:50 +0000 Subject: [PATCH] Added unit tests for DTEND in iCalendarEvent/ObjectDataTests. --- source/tests/xestiacalendar_icaleventload.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.39.5