From: Steve Brokenshire Date: Wed, 27 Jan 2016 12:05:49 +0000 (+0000) Subject: Added unit tests for DURATION in iCalendarEvent/ObjectDataTests. X-Git-Tag: release-0.02~649 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=a02f65e044c17f00ed58364fa51b8853519a876e;p=xestiacalendar%2F.git Added unit tests for DURATION in iCalendarEvent/ObjectDataTests. --- diff --git a/source/tests/xestiacalendar_icaleventload.h b/source/tests/xestiacalendar_icaleventload.h index d81dd6c..ddde101 100644 --- a/source/tests/xestiacalendar_icaleventload.h +++ b/source/tests/xestiacalendar_icaleventload.h @@ -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