From: Steve Brokenshire Date: Mon, 30 May 2016 08:21:15 +0000 (+0100) Subject: Added menu option for testing the saving of iCalendar Events. X-Git-Tag: release-0.02~263 X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=commitdiff_plain;h=5a9fda05e1769510eaf31b0bc4f031c17800daf9 Added menu option for testing the saving of iCalendar Events. --- diff --git a/source/tests/xestiacalendar_test.cpp b/source/tests/xestiacalendar_test.cpp index e3e2bed..646db15 100644 --- a/source/tests/xestiacalendar_test.cpp +++ b/source/tests/xestiacalendar_test.cpp @@ -25,6 +25,7 @@ #include "xestiacalendar_commonfunctions.h" #include "xestiacalendar_populate.h" #include "xestiacalendar_icaleventload.h" +#include "xestiacalendar_icaleventsave.h" #include "xestiacalendar_icaltaskload.h" #include "xestiacalendar_icaljournalload.h" #include "xestiacalendar_icalfreebusyload.h" @@ -33,6 +34,7 @@ enum MenuOpts { TESTS_ICALLOADEVENT = 1, + TESTS_ICALSAVEEVENT, TESTS_ICALLOADTODO, TESTS_ICALLOADJOURNAL, TESTS_ICALLOADFREEBUSY, @@ -60,6 +62,7 @@ void printmenu(){ std::cout << "Select an option:" << std::endl << std::endl; std::cout << TESTS_ICALLOADEVENT << ". iCalendar Event Component Load" << std::endl; + std::cout << TESTS_ICALSAVEEVENT << ". iCalendar Event Component Save" << std::endl; std::cout << TESTS_ICALLOADTODO << ". iCalendar Task Component Load" << std::endl; std::cout << TESTS_ICALLOADJOURNAL << ". iCalendar Journal Component Load" << std::endl; std::cout << TESTS_ICALLOADFREEBUSY << ". iCalendar FreeBusy Component Load" << std::endl; @@ -187,6 +190,11 @@ int main(int argc, char* argv[]){ ::testing::GTEST_FLAG(filter) = "iCalendarEvent*"; TestResult = RUN_ALL_TESTS(); break; + case TESTS_ICALSAVEEVENT: + printn("Running iCalendar Event Component Save tests..."); + ::testing::GTEST_FLAG(filter) = "iCalendarSaveEvent*"; + TestResult = RUN_ALL_TESTS(); + break; case TESTS_ICALLOADTODO: printn("Running iCalendar Task Component tests..."); ::testing::GTEST_FLAG(filter) = "iCalendarTask*";