From: Steve Brokenshire Date: Sun, 31 Jan 2016 10:44:39 +0000 (+0000) Subject: Added initial unit tests for iCalendarTask/ObjectDataTests. X-Git-Tag: release-0.02~595 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=13e3af6809e03e1680ef238c7da55fb97be1e645;p=xestiacalendar%2F.git Added initial unit tests for iCalendarTask/ObjectDataTests. --- diff --git a/source/tests/xestiacalendar_icaltaskload.h b/source/tests/xestiacalendar_icaltaskload.h index cc62ff5..ed083ca 100644 --- a/source/tests/xestiacalendar_icaltaskload.h +++ b/source/tests/xestiacalendar_icaltaskload.h @@ -26,4 +26,12 @@ TEST(iCalendarTask, BasicTests){ ASSERT_EQ(CALENDAROBJECTLOAD_CANNOTOPEN, TestTask.LoadFile("iCalendarTask-InvalidPermissions.vcf")); ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestTask.LoadFile("iCalendarTask-Load1.vcf")); +} + +TEST(iCalendarTask, ObjectDataTests){ + + CalendarTaskObject TestTask; + ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestTask.LoadFile("iCalendarTask-Load2.vcf")); + ASSERT_EQ(CALENDAROBJECTVALID_OK, TestTask.ValidBaseObject()); + } \ No newline at end of file