public void CourseRemoveStudentWhenTheListIsEmpty() { Course course = new Course("C#", new List<Student>()); Student student = new Student("Svetlin", 11111); course.RemoveStudent(student); Assert.AreEqual(0, course.Students.Count); }
public void CourseRemoveStudentRegularTest() { Course course = new Course("C#", new List<Student>()); Student student = new Student("Svetlin", 11111); course.AddStudent(student); course.RemoveStudent(student); Assert.AreEqual(0, course.Students.Count); }
public void RemoveStudentTest() { Course course = new Course("QualityCode"); course.AddStudent(new Student("Petar Petrov", 12345)); Student todor = new Student("Todor Todorov", 54321); course.AddStudent(todor); course.RemoveStudent(todor); Assert.IsTrue(course.Students.Count == 1); }
public void RemoveNonExistingStudentTest() { Course course = new Course("QualityCode"); Student petar = new Student("Petar Petrov", 12345); course.RemoveStudent(petar); }
public void LeaveCourse(Course course) { course.RemoveStudent(this); }