Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added initial VALARM processing in CalendarEventObject.
[xestiacalendar/.git] / source / tests / xestiacalendar_icaleventload.h
index d82f687..3085676 100644 (file)
@@ -1069,5 +1069,27 @@ TEST(iCalendarEvent, ObjectDataTests){
        
        ASSERT_EQ("None", XTokenData);
        ASSERT_EQ("X-PHANTOM-STATUS;HELP=NONE", XTokenName);
+
+       // Tests for the first VALARM property.
+       
+       std::string ActionData;
+       std::string ActionDataTokens;
+       
+       if (TestEvent.CalendarAlarmData.size() > 0){
+       
+               ActionData = TestEvent.CalendarAlarmData[0].AlarmAction;
+               
+       }
+
+       if (TestEvent.CalendarAlarmData.size() > 0){
+       
+               ActionDataTokens = TestEvent.CalendarAlarmData[0].AlarmActionTokens;
+               
+       }
+       
+       ASSERT_EQ("AUDIO", ActionData);
+       ASSERT_EQ("FUNKY=SOUNDS", ActionDataTokens);
+       
+       
        
 }
\ 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