From a02f65e044c17f00ed58364fa51b8853519a876e Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 27 Jan 2016 12:05:49 +0000 Subject: [PATCH] Added unit tests for DURATION in iCalendarEvent/ObjectDataTests. --- source/tests/xestiacalendar_icaleventload.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5