Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit tests for DURATION in iCalendarEvent/ObjectDataTests.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 27 Jan 2016 12:05:49 +0000 (12:05 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 27 Jan 2016 12:05:49 +0000 (12:05 +0000)
source/tests/xestiacalendar_icaleventload.h

index d81dd6c..ddde101 100644 (file)
@@ -189,6 +189,11 @@ TEST(iCalendarEvent, ObjectDataTests){
        // Tests for DURATION. (Done in another file called 
        // iCalendarEvent-Load3.vcf).
 
-       
+       CalendarEventObject TestEvent2;
+       ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestEvent2.LoadFile("iCalendarEvent-Load3.vcf"));
+       ASSERT_EQ(CALENDAROBJECTVALID_OK, TestEvent2.ValidBaseObject());
+
+       ASSERT_EQ("PT1H", TestEvent2.DurationData);
+       ASSERT_EQ("TEST=EXAMPLE", TestEvent2.DurationDataTokens);
 
 }
\ 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