public void TestStudent_LeaveCourseNull() { Student testStudentOne = new Student("Pesho"); Course javascript = new Course("Javascript Course", "Nakov"); testStudentOne.JoinCourse(javascript); testStudentOne.LeaveCourse(null); }
public void TestStudent_LeaveCourse() { Student testStudentOne = new Student("Pesho"); Course javascript = new Course("Javascript Course", "Nakov"); testStudentOne.JoinCourse(javascript); testStudentOne.LeaveCourse(javascript); Assert.IsFalse(javascript.Students.Contains(testStudentOne), "Student has not been removed in the course"); }