public void StudentGroupShouldRemoveStudent() { var myClass = new StudentGroup("TelerikAcad"); var student = new Student("Pe6o Ubaveca", Student.MinValidId); myClass.AddStudent(student); Assert.AreEqual(1, myClass.Students.Count); myClass.RemoveStudent(student); Assert.AreEqual(0, myClass.Students.Count); }
public void StudentGroupShouldThrowOnNullStudentRemove() { var myClass = new StudentGroup("TelerikAcad"); myClass.RemoveStudent(null); }
public void StudentGroupShouldThrowIfNoSuchStudentToRemove() { var myClass = new StudentGroup("TelerikAcad"); var student = new Student("Pe6o Ubaveca", Student.MinValidId); myClass.RemoveStudent(student); }