Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit tests for DTSTAMP in iCalendarJournal/ObjectDataTests.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 17:38:58 +0000 (17:38 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 17:38:58 +0000 (17:38 +0000)
source/tests/xestiacalendar_icalfreebusyload.h

index d535fcf..e0b63aa 100644 (file)
@@ -26,4 +26,17 @@ TEST(iCalendarFreeBusy, BasicTests){
        ASSERT_EQ(CALENDAROBJECTLOAD_CANNOTOPEN, TestFreeBusy.LoadFile("iCalendarFreeBusy-InvalidPermissions.vcf"));
        ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestFreeBusy.LoadFile("iCalendarFreeBusy-Load1.vcf"));
        
+}
+
+TEST(iCalendarFreeBusy, ObjectDataTests){
+       
+       CalendarFreeBusyObject TestFreeBusy;
+       ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestFreeBusy.LoadFile("iCalendarFreeBusy-Load2.vcf"));
+       ASSERT_EQ(CALENDAROBJECTVALID_OK, TestFreeBusy.ValidBaseObject());
+       
+       // Tests for DTSTAMP.
+       
+       ASSERT_EQ("20160131T173000Z", TestFreeBusy.DateTimeStampData);
+       ASSERT_EQ("OTHER=PARAM", TestFreeBusy.DateTimeStampTokens);
+       
 }
\ 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