From: Steve Brokenshire Date: Tue, 31 May 2016 23:06:32 +0000 (+0100) Subject: Added more to unit test checking for CLASS for CalendarEventObject X-Git-Tag: release-0.02~250 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=b9161b809dfaad8fe73096b12c6082efdfa99f81;p=xestiacalendar%2F.git Added more to unit test checking for CLASS for CalendarEventObject --- diff --git a/source/tests/xestiacalendar_icaleventsave.h b/source/tests/xestiacalendar_icaleventsave.h index 1ed9ae6..2e2ffbf 100644 --- a/source/tests/xestiacalendar_icaleventsave.h +++ b/source/tests/xestiacalendar_icaleventsave.h @@ -65,6 +65,7 @@ TEST(iCalendarSaveEvent, SaveEventTests){ ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestEvent2.LoadFile("iCalendarEvent-Load2.vcf")); ASSERT_EQ(CALENDAROBJECTVALID_OK, TestEvent2.ValidBaseObject()); + SaveData.clear(); SaveDataComparison = "BEGIN:VCARD\n" "VERSION:2.0\n" "PRODID:-//Xestia//Calendar Unit Testing//KW\n" @@ -73,10 +74,11 @@ TEST(iCalendarSaveEvent, SaveEventTests){ "DTSTAMP;OTHER=PARAM:20160122T124100Z\n" "DTSTART;VALUE=DATE-TIME;TZID=Europe/Truro;PARAMONE=YES;PARAMTWO=NO:20160122T1\n" " 83000Z\n" - "DTEND;VALUE=DATE-TIME;TZID=Europe/Truro;PARAMTHREE=NO;PARAMFOUR=YES:20160124\n" - " T183000Z\n" - "SUMMARY;ALTREP="null:nodata";LANGUAGE=kw;FAVOURITE=TOFU;NOTLIKE=NONE:A summa\n" - " ry of the event.\n" + "DTEND;VALUE=DATE-TIME;TZID=Europe/Truro;PARAMFOUR=YES;PARAMTHREE=NO:20160124T\n" + " 183000Z\n" + "SUMMARY;ALTREP=\"null:nodata\";LANGUAGE=kw;FAVOURITE=TOFU;NOTLIKE=NONE:A summar\n" + " y of the event.\n" + "CLASS;CHOCOLATE=BAR:PUBLIC\n" "END:VEVENT\n" "END:VCARD";