Ejemplo n.º 1
0
 public void RemoveCourseTest()
 {
     School school = new School();
     Course course = new Course("QualityCode");
     school.AddCourse(course);
     school.RemoveCourse(course);
     Assert.IsTrue(school.Courses.Count == 0);
 }
Ejemplo n.º 2
0
 public void SchoolRemoveCourseRegularTest()
 {
     School school = new School(new List<Student>(), new List<Course>());
     Course course = new Course("C#", new List<Student>());
     school.AddCourse(course);
     school.RemoveCourse(course);
     Assert.AreEqual(0, school.AllCourses.Count);
 }
Ejemplo n.º 3
0
 public void RemoveNonExistingCourseTest()
 {
     School school = new School();
     school.RemoveCourse(new Course("QualityCode"));
 }