From 1cde41d8481180653bd2a3de894053677e022b17 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 11:22:38 +0000 Subject: [PATCH] Added unit tests for DTSTART in iCalendarTask/ObjectDataTests. --- source/tests/xestiacalendar_icaltaskload.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/tests/xestiacalendar_icaltaskload.h b/source/tests/xestiacalendar_icaltaskload.h index 0b06238..a908a4b 100644 --- a/source/tests/xestiacalendar_icaltaskload.h +++ b/source/tests/xestiacalendar_icaltaskload.h @@ -87,4 +87,11 @@ TEST(iCalendarTask, ObjectDataTests){ ASSERT_EQ("kw", DescriptionLanguage); ASSERT_EQ("EXAMPLE=TOKEN;MOREDATA=YES", DescriptionTokens); + // Tests for DTSTART. + + ASSERT_EQ("20160131T103000Z", TestTask.DateTimeStartData); + ASSERT_EQ("DATE-TIME", TestTask.DateTimeStartDataValue); + ASSERT_EQ("Europe/Truro", TestTask.DateTimeStartDataTimeZoneID); + ASSERT_EQ("PARAMONE=YES;PARAMTWO=NO", TestTask.DateTimeStartDataTokens); + } \ No newline at end of file -- 2.39.5