Ejemplo n.º 1
0
 public void TestLeaveNotJoinedStudent()
 {
     string name = "Crocheting";
     Student student = new Student("Ivan Ivanov", 12233);
     Course course = new Course(name);
     course.Leave(student);
 }
Ejemplo n.º 2
0
 public void TestLeaveStudent()
 {
     string name = "Crocheting";
     Student student = new Student("Ivan Ivanov", 12233);
     Course course = new Course(name);
     course.Join(student);
     course.Leave(student);
     Assert.IsTrue(course.StudentsList.Count == 0);
 }