From 2d7a81dd3a791c60adca1938809f8b49525c84b3 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 10:16:14 +0000 Subject: [PATCH] Added inital unit tests for CalendarTaskObject in iCalendarTask/BasicTests. --- source/tests/xestiacalendar_icaltaskload.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/tests/xestiacalendar_icaltaskload.h b/source/tests/xestiacalendar_icaltaskload.h index af6fd25..cc62ff5 100644 --- a/source/tests/xestiacalendar_icaltaskload.h +++ b/source/tests/xestiacalendar_icaltaskload.h @@ -16,4 +16,14 @@ // You should have received a copy of the GNU General Public License along // with Xestia Calendar. If not, see -#include "../objects/calendartask/CalendarTask.h" \ No newline at end of file +#include "../objects/calendartask/CalendarTask.h" + +TEST(iCalendarTask, BasicTests){ + + CalendarTaskObject TestTask; + + ASSERT_EQ(CALENDAROBJECTLOAD_MISSING, TestTask.LoadFile("iCalendarTask-Missing.vcf")); + ASSERT_EQ(CALENDAROBJECTLOAD_CANNOTOPEN, TestTask.LoadFile("iCalendarTask-InvalidPermissions.vcf")); + ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestTask.LoadFile("iCalendarTask-Load1.vcf")); + +} \ No newline at end of file -- 2.39.5