From: Steve Brokenshire Date: Sat, 23 Jan 2016 22:08:01 +0000 (+0000) Subject: Added unit tests for DTSTART in iCalendarEvent/ObjectDataTests X-Git-Tag: release-0.02~715 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=33710a568c956e0f09959a8054e7cabf152d744f;p=xestiacalendar%2F.git Added unit tests for DTSTART in iCalendarEvent/ObjectDataTests --- diff --git a/source/tests/xestiacalendar_icaleventload.h b/source/tests/xestiacalendar_icaleventload.h index 674ebcf..4bb5dbc 100644 --- a/source/tests/xestiacalendar_icaleventload.h +++ b/source/tests/xestiacalendar_icaleventload.h @@ -62,4 +62,11 @@ TEST(iCalendarEvent, ObjectDataTests){ ASSERT_EQ("b3a16392-ad86-4061-be53-c215af2306e0", TestEvent.UniqueID); ASSERT_EQ("UNIQUEPARAM=CERTAINLY;OKAY=MAYBENOT", TestEvent.UniqueIDTokens); + // Tests for DTSTART. + + ASSERT_EQ("20160122T183000Z", TestEvent.DateTimeStartData); + ASSERT_EQ("DATE-TIME", TestEvent.DateTimeStartDataValue); + ASSERT_EQ("Europe/Truro", TestEvent.DateTimeStartDataTimeZoneID); + ASSERT_EQ("PARAMONE=YES;PARAMTWO=NO", TestEvent.DateTimeStartDataTokens); + } \ No newline at end of file