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 14:20:41 +0000 (14:20 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 14:20:41 +0000 (14:20 +0000)
source/tests/xestiacalendar_icaljournalload.h

index d28cdf2..9c06acc 100644 (file)
 
 TEST(iCalendarJournal, BasicTests){
 
-       CalendarJournalObject TestEvent;
+       CalendarJournalObject TestJournal;
        
-       ASSERT_EQ(CALENDAROBJECTLOAD_MISSING, TestEvent.LoadFile("iCalendarJournal-Missing.vcf"));
-       ASSERT_EQ(CALENDAROBJECTLOAD_CANNOTOPEN, TestEvent.LoadFile("iCalendarJournal-InvalidPermissions.vcf"));
-       ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestEvent.LoadFile("iCalendarJournal-Load1.vcf"));
+       ASSERT_EQ(CALENDAROBJECTLOAD_MISSING, TestJournal.LoadFile("iCalendarJournal-Missing.vcf"));
+       ASSERT_EQ(CALENDAROBJECTLOAD_CANNOTOPEN, TestJournal.LoadFile("iCalendarJournal-InvalidPermissions.vcf"));
+       ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestJournal.LoadFile("iCalendarJournal-Load1.vcf"));
+       
+}
+
+TEST(iCalendarJournal, ObjectDataTests){
+       
+       CalendarEventObject TestJournal;
+       ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestJournal.LoadFile("iCalendarEvent-Load2.vcf"));
+       ASSERT_EQ(CALENDAROBJECTVALID_OK, TestJournal.ValidBaseObject());
+       
+       // Tests for DTSTAMP.
+       
+       ASSERT_EQ("20160122T124100Z", TestJournal.DateTimeStampData);
+       ASSERT_EQ("OTHER=PARAM", TestJournal.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