public void UnsibscribingStudentFromCourse_ShouldPass(string name) { var course = new Course("Math"); var student = new Student(name); course.Subscribe(student); course.Unsubscribe(student); Assert.AreEqual(course.Students.Count, 0); }
public void UnsubscribingNotSubscribedStudent_ShouldDoNothing() { var course = new Course("Math"); var student = new Student("Pesho"); var pesho = new Student("Pesho"); course.Subscribe(student); course.Unsubscribe(pesho); Assert.AreEqual(course.Students.Count, 1); }