Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit tests for DUE and DURATION in iCalendarTask/ObjectDataTests.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 13:11:34 +0000 (13:11 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 13:11:34 +0000 (13:11 +0000)
source/tests/xestiacalendar_icaltaskload.h

index 5a786dc..741747d 100644 (file)
@@ -166,4 +166,20 @@ TEST(iCalendarTask, ObjectDataTests){
        ASSERT_EQ("FREQ=DAILY;COUNT=10", TestTask.RecurranceRuleData);
        ASSERT_EQ("TEST=DATA", TestTask.RecurranceRuleDataTokens);
        
+       // Tests for DUE.
+       
+       ASSERT_EQ("20160131T150000Z", TestTask.DueData);
+       ASSERT_EQ("Europe/Truro", TestTask.DueDataTimeZoneID);
+       ASSERT_EQ("DATE-TIME", TestTask.DueDataValue);
+       ASSERT_EQ("TEST=YES", TestTask.DueDataTokens);
+       
+       // Tests for DURATION.
+       
+       CalendarTaskObject TestTask2;
+       ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestTask2.LoadFile("iCalendarTask-Load3.vcf"));
+       ASSERT_EQ(CALENDAROBJECTVALID_OK, TestTask2.ValidBaseObject());
+       
+       ASSERT_EQ("PT15M", TestTask2.DurationData);
+       ASSERT_EQ("TEST=YES", TestTask2.DurationDataTokens);
+       
 }
\ No newline at end of file
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy