Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added initial tests for the iCalendarTimezone-Load2.vcf
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 9 Jun 2016 21:37:59 +0000 (22:37 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 9 Jun 2016 21:37:59 +0000 (22:37 +0100)
source/tests/xestiacalendar_icaltimezonesave.h

index 0bc4a3b..8afaa2d 100644 (file)
@@ -21,6 +21,7 @@
 TEST(iCalendarSaveTimezone, SaveTimezoneTests){
 
        CalendarTimezoneObject TestTimezone;
+       CalendarTimezoneObject TestTimezone2;
        
        // Load the first test timezone.
        
@@ -47,4 +48,23 @@ TEST(iCalendarSaveTimezone, SaveTimezoneTests){
        
        ASSERT_EQ(SaveDataComparison, SaveData);
        
+       // Process the second calendar item.
+
+       ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestTimezone2.LoadFile("iCalendarTimezone-Load2.vcf"));
+       ASSERT_EQ(CALENDAROBJECTVALID_OK, TestTimezone2.ValidBaseObject());
+       
+       SaveData.clear();
+       
+       TestTimezone2.SaveString(&SaveData);
+
+       SaveDataComparison = "BEGIN:VCALENDAR\n"
+       "VERSION:2.0\n"
+       "PRODID:-//Xestia//Calendar Unit Testing//KW\n"
+       "BEGIN:VTIMEZONE\n"
+       "TZID;OTHER=PARAM:Example/Starrgazy\n"
+       "END:VTIMEZONE\n"
+       "END:VCALENDAR";
+
+       ASSERT_EQ(SaveDataComparison, SaveData);
+
 }
\ 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