public void ValidateIdTest() { //Arrange ProjectMgr projectMgr = new ProjectMgr(); ProjectItem projectItem = new ProjectItem("111", "test"); projectMgr.Add(projectItem); //Act bool result = projectMgr.ValidateId("*"); //Assess Assert.AreEqual(true, result); }
private void Debug() { ProjectItem projectItem; string person; TaskItem taskItem; projectItem = new ProjectItem("1111", "1 example"); person = "Ting"; projectItem.Persons.Add(person); person = "Fing"; projectItem.Persons.Add(person); person = "Sing"; projectItem.Persons.Add(person); projectMgr.Add(projectItem); projectItem = new ProjectItem("1112", "2 example"); person = "Ling"; projectItem.Persons.Add(person); person = "Ring"; projectItem.Persons.Add(person); projectMgr.Add(projectItem); taskItem = new TaskItem(1, "Scout", "Search nearby area"); taskMgr.Add(taskItem); taskItem = new TaskItem(2, "Build", "Build a shelter"); taskMgr.Add(taskItem); taskItem = new TaskItem(3, "Food", "Find food"); taskMgr.Add(taskItem); taskItem = new TaskItem(4, "Fire", "Make fire"); taskMgr.Add(taskItem); taskItem = new TaskItem(5, "Data Collection", "Research the data required"); taskMgr.Add(taskItem); taskItem = new TaskItem(6, "Data Analysis", "Analyse the data from data collection step"); taskMgr.Add(taskItem); taskItem = new TaskItem(7, "Presentation", "Present the anlysis"); taskMgr.Add(taskItem); }