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