public void TestMenuResult() { MenuController mainMenu = new MenuController(); string option1 = mainMenu.Option1 (); string option2 = mainMenu.Option2 (); string option3 = mainMenu.Option3 (); Assert.IsTrue(option1 == "Here you can create an activity!"); Assert.IsTrue(option2 == "Here you can edit your user profile!"); Assert.IsTrue(option3 == "Here you can logout!"); }
//Constructor /// <summary> /// Default Constructor for Controller /// </summary> public Controller() { _users = new List<Profile>(); _activities = new List<Activity>(); _profileDatabase = new DatabaseController("info/profiles.txt"); _activityDatabase = new DatabaseController("info/activities.txt"); _Menu = new MenuController(); Quit = false; currentLogin = null; currentActivity = null; }