From 13e3af6809e03e1680ef238c7da55fb97be1e645 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 10:44:39 +0000 Subject: [PATCH] Added initial unit tests for iCalendarTask/ObjectDataTests. --- source/tests/xestiacalendar_icaltaskload.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5