Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit tests to process TRIGGER in VALARM for CalendarEventObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 13 Feb 2016 16:38:36 +0000 (16:38 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 13 Feb 2016 16:38:36 +0000 (16:38 +0000)
source/tests/xestiacalendar_icaleventload.h

index 3085676..3118907 100644 (file)
@@ -1075,21 +1075,29 @@ TEST(iCalendarEvent, ObjectDataTests){
        std::string ActionData;
        std::string ActionDataTokens;
        
-       if (TestEvent.CalendarAlarmData.size() > 0){
+       std::string TriggerData;
+       std::string TriggerRelated;
+       std::string TriggerValue;
+       std::string TriggerTokens;
        
-               ActionData = TestEvent.CalendarAlarmData[0].AlarmAction;
-               
-       }
-
        if (TestEvent.CalendarAlarmData.size() > 0){
        
+               ActionData = TestEvent.CalendarAlarmData[0].AlarmAction;
                ActionDataTokens = TestEvent.CalendarAlarmData[0].AlarmActionTokens;
                
+               TriggerData = TestEvent.CalendarAlarmData[0].TriggerData;
+               TriggerRelated = TestEvent.CalendarAlarmData[0].TriggerRelated;
+               TriggerValue = TestEvent.CalendarAlarmData[0].TriggerValue;
+               TriggerTokens = TestEvent.CalendarAlarmData[0].TriggerTokens;
+               
        }
        
        ASSERT_EQ("AUDIO", ActionData);
        ASSERT_EQ("FUNKY=SOUNDS", ActionDataTokens);
        
-       
+       ASSERT_EQ("20160220T160000Z", TriggerData);
+       ASSERT_EQ("END", TriggerRelated);
+       ASSERT_EQ("DATE-TIME", TriggerValue);
+       ASSERT_EQ("PUSH=BUTTON", TriggerTokens);
        
 }
\ 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