From: Steve Brokenshire Date: Sun, 31 Jan 2016 10:16:14 +0000 (+0000) Subject: Added inital unit tests for CalendarTaskObject in iCalendarTask/BasicTests. X-Git-Tag: release-0.02~599 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=2d7a81dd3a791c60adca1938809f8b49525c84b3;p=xestiacalendar%2F.git Added inital unit tests for CalendarTaskObject in iCalendarTask/BasicTests. --- 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