From: Steve Brokenshire Date: Sun, 31 Jan 2016 11:22:38 +0000 (+0000) Subject: Added unit tests for DTSTART in iCalendarTask/ObjectDataTests. X-Git-Tag: release-0.02~571 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=1cde41d8481180653bd2a3de894053677e022b17;p=xestiacalendar%2F.git Added unit tests for DTSTART in iCalendarTask/ObjectDataTests. --- 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