From: Steve Brokenshire Date: Sun, 24 Jan 2016 14:32:42 +0000 (+0000) Subject: Added unit tests for RECURRENCE-ID in iCalendarEvent/ObjectDataTests. X-Git-Tag: release-0.02~664 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=396879893eda9ea7fa1033eea509500e0e2305f8;p=xestiacalendar%2F.git Added unit tests for RECURRENCE-ID in iCalendarEvent/ObjectDataTests. --- diff --git a/source/tests/xestiacalendar_icaleventload.h b/source/tests/xestiacalendar_icaleventload.h index 539023d..baff32a 100644 --- a/source/tests/xestiacalendar_icaleventload.h +++ b/source/tests/xestiacalendar_icaleventload.h @@ -165,5 +165,13 @@ TEST(iCalendarEvent, ObjectDataTests){ ASSERT_EQ("http://www.example.com/", TestEvent.URLData); ASSERT_EQ("EXTERNAL=YES", TestEvent.URLDataTokens); + + // Tests for RECURRENCE-ID. + + ASSERT_EQ("20160124", TestEvent.RecurranceIDData); + ASSERT_EQ("Europe/Truro", TestEvent.RecurranceIDDataTimeZoneParam); + ASSERT_EQ("THISANDFUTURE", TestEvent.RecurranceIDDataRangeParam); + ASSERT_EQ("DATE", TestEvent.RecurranceIDDataValue); + ASSERT_EQ("EXAMPLE=DATA", TestEvent.RecurranceIDDataTokens); } \ No newline at end of file