From 33710a568c956e0f09959a8054e7cabf152d744f Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 23 Jan 2016 22:08:01 +0000 Subject: [PATCH] Added unit tests for DTSTART in iCalendarEvent/ObjectDataTests --- source/tests/xestiacalendar_icaleventload.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5