From: Steve Brokenshire Date: Sun, 31 Jan 2016 12:27:50 +0000 (+0000) Subject: Added unit tests for SEQUENCE and STATUS in iCalendarTask/ObjectDataTests. X-Git-Tag: release-0.02~551 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=439dca3c78abe8e86e002d4a5812ccdc78ae8a18;p=xestiacalendar%2F.git Added unit tests for SEQUENCE and STATUS in iCalendarTask/ObjectDataTests. --- diff --git a/source/tests/xestiacalendar_icaltaskload.h b/source/tests/xestiacalendar_icaltaskload.h index db631b5..747b53c 100644 --- a/source/tests/xestiacalendar_icaltaskload.h +++ b/source/tests/xestiacalendar_icaltaskload.h @@ -138,4 +138,15 @@ TEST(iCalendarTask, ObjectDataTests){ ASSERT_EQ("DATE", TestTask.RecurranceIDDataValue); ASSERT_EQ("EXAMPLE=DATA", TestTask.RecurranceIDDataTokens); + // Tests for SEQUENCE. + + ASSERT_EQ(3, TestTask.SequenceData); + ASSERT_EQ("TEST=YAY", TestTask.SequenceTokens); + + // Tests for STATUS. + + ASSERT_EQ("2.0;Success", TestTask.StatusData); + ASSERT_EQ("kw", TestTask.StatusLanguage); + ASSERT_EQ("FAVOURITE=BEANS;NOTLIKE=UNKNOWN", TestTask.StatusTokens); + } \ No newline at end of file