CalendarObjectSaveResult CalendarObject::SaveString(string *SaveStringData){
- *SaveStringData += "BEGIN:VCARD\n";
+ *SaveStringData += "BEGIN:VCALENDAR\n";
*SaveStringData += "VERSION:2.0\n";
// Check if METHOD has a value and print it if it does (and
SaveObjectData(SaveStringData);
- *SaveStringData += "END:VCARD";
+ *SaveStringData += "END:VCALENDAR";
}
\ No newline at end of file
// First contact file.
- std::string SaveDataComparison = "BEGIN:VCARD\n"
+ std::string SaveDataComparison = "BEGIN:VCALENDAR\n"
"VERSION:2.0\n"
"METHOD;EXAMPLE=DATA:REQUEST\n"
"CALSCALE;MORE=YES:GREGORIAN\n"
" now if multiple line processing is going to work without it. I mean seriousl\n"
" y, how annoying can this potentially be?\n"
"END:VEVENT\n"
- "END:VCARD";
+ "END:VCALENDAR";
std::string SaveData;
ASSERT_EQ(CALENDAROBJECTVALID_OK, TestEvent2.ValidBaseObject());
SaveData.clear();
- SaveDataComparison = "BEGIN:VCARD\n"
+ SaveDataComparison = "BEGIN:VCALENDAR\n"
"VERSION:2.0\n"
"PRODID:-//Xestia//Calendar Unit Testing//KW\n"
"BEGIN:VEVENT\n"
"X-EXAMPLE3;WORLD=NO:Example Data 3\n"
"END:VALARM\n"
"END:VEVENT\n"
- "END:VCARD";
+ "END:VCALENDAR";
TestEvent2.SaveString(&SaveData);