Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added inital unit tests for CalendarTaskObject in iCalendarTask/BasicTests.
[xestiacalendar/.git] / source / tests / xestiacalendar_icaltaskload.h
index af6fd25..cc62ff5 100644 (file)
 // You should have received a copy of the GNU General Public License along
 // with Xestia Calendar. If not, see <http://www.gnu.org/licenses/>
 
-#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
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy