Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added menu option for testing the saving of iCalendar Events.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 30 May 2016 08:21:15 +0000 (09:21 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 30 May 2016 08:21:15 +0000 (09:21 +0100)
source/tests/xestiacalendar_test.cpp

index e3e2bed..646db15 100644 (file)
@@ -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*";
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