public void RemoveNonExistingCourseTest() { List<Course> courses = new List<Course>(); School school = new School(); Course javascript = new Course("Javascript"); school.RemoveCourse(javascript); }
public void TestRemoveStudentExceptionWhenNotExisting() { School school = new School("GLFL Simeon Radev"); Course courseOne = new Course("Math"); Course courseTwo = new Course("Physics"); school.AddCourse(courseOne); school.RemoveCourse(courseTwo); }
public void RemoveCourseTest() { List<Course> courses = new List<Course>(); School school = new School(); Course javascript = new Course("Javascript"); school.AddCourse(javascript); school.RemoveCourse(javascript); Assert.IsTrue(school.Courses.Count == 0); }
public void TestAddCourseRemoveCourse() { School school = new School("GLFL Simeon Radev"); Course course = new Course("Math"); school.AddCourse(new Course("Physics")); Assert.AreEqual(school.Courses.Count, 1); school.AddCourse(course); Assert.AreEqual(school.Courses.Count, 2); Assert.AreEqual(school.Courses[1].Name, "Math"); school.RemoveCourse(course); Assert.AreEqual(school.Courses.Count, 1); Assert.AreEqual(school.Courses[0].Name, "Physics"); }