public void HasStudent_Test() { Course course = new Course(".NET"); course.AddNewStudent(new Student("Pesho")); course.AddNewStudent(new Student("Ivan")); course.AddNewStudent(new Student("Garo")); bool isFound = course.HasStudent("Ivan"); bool notFound = !course.HasStudent("Ivannn"); Assert.AreEqual(isFound, true); Assert.AreEqual(notFound, true); }
public void HasStudent_Test() { Course course = new Course(".NET"); course.AddNewStudent(new Student("Pesho")); course.AddNewStudent(new Student("Ivan")); course.AddNewStudent(new Student("Garo")); bool isFound = course.HasStudent(Student.NextID - 2); bool notFound = !course.HasStudent(Student.NextID - 4); Assert.AreEqual(true, isFound); Assert.AreEqual(true, notFound); }