Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit test for tokens in METHOD for iCalendarEvent/BaseObjectVerifyTests
[xestiacalendar/.git] / source / tests / xestiacalendar_icaleventload.h
index b9a2b63..e3498e2 100644 (file)
@@ -34,6 +34,11 @@ TEST(iCalendarEvent, BaseObjectVerifyTests){
        TestEvent.LoadFile("iCalendarEvent-Load1.vcf");
        ASSERT_EQ(CALENDAROBJECTVALID_OK, TestEvent.ValidBaseObject());
        
+       // Tests for METHOD.
+       
+       ASSERT_EQ("REQUEST", TestEvent.MethodData);
+       ASSERT_EQ("EXAMPLE=DATA", TestEvent.MethodTokens);
+       
 }
 
 TEST(iCalendarEvent, ObjectDataTests){
@@ -42,6 +47,14 @@ TEST(iCalendarEvent, ObjectDataTests){
        ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestEvent.LoadFile("iCalendarEvent-Load2.vcf"));
        ASSERT_EQ(CALENDAROBJECTVALID_OK, TestEvent.ValidBaseObject());
        
+       // Tests for DTSTAMP.
+       
        ASSERT_EQ("20160122T124100Z", TestEvent.DateTimeStampData);
+       ASSERT_EQ("OTHER=PARAM", TestEvent.DateTimeStampTokens);
+       
+       // Tests for UID.
+       
+       ASSERT_EQ("b3a16392-ad86-4061-be53-c215af2306e0", TestEvent.UniqueID);
+       ASSERT_EQ("UNIQUEPARAM=CERTAINLY;OKAY=MAYBENOT", TestEvent.UniqueIDTokens);
        
 }
\ 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