Esempio n. 1
0
 public void TestCourseAddStudentTwise()
 {
     List<Student> students = new List<Student>();
     Course course = new Course(students);
     Student student = new Student("Mitko Mitev", 61614);
     Student student1 = new Student("Mitko Mitev", 61614);
     course.AddStudents(student1);
     course.AddStudents(student);
     
 }
Esempio n. 2
0
 public void TestCourseAddStudents()
 {
     List<Student> students = new List<Student>();
     Course course = new Course(students);
     Student student = new Student("Mitko Mitev", 61614);
     Student student1 = new Student("Krali Marko", 23237);
     course.AddStudents(student1);
     course.AddStudents(student);
     Assert.IsTrue(course.Participants.Count==2);
 }
Esempio n. 3
0
 public void TestRemoveStudentt()
 {
     List<Student> students = new List<Student>();
     Course course = new Course(students);
     Student student = new Student("Mitko Mitev", 61614);                       
     course.AddStudents(student);
     course.Remove(student);
     Assert.IsTrue(course.Participants.Count == 0);
 }
Esempio n. 4
0
 public void TestCourseAddStudent()
 {         
     List<Student> students = new List<Student>();
     Course course = new Course(students);                      
    Student student = new Student("Mitko Mitev", 61614);           
    //Course course = new Course();
    course.AddStudents(student);
    Assert.IsTrue(course.Participants.Contains(student));
 }
Esempio n. 5
0
 public void TestFindStudent()
 {
     List<Student> students = new List<Student>();
     Course course = new Course(students);           
     Student student = new Student("Mitko Mitev", 61614);
     course.AddStudents(student);
     bool actual = course.IsStudentFound(student);         
     Assert.AreEqual(true,actual);
 }
Esempio n. 6
0
 public void TestAddMoreThanExpected()
 {
     List<Student> students = new List<Student>();
     Course course = new Course(students);
     Student student = new Student("Mitko Mitev", 61614);
     for (int i = 10001; i < 10032; i++)
     {
         course.AddStudents(new Student("Marto",i));
     }                        
     
 }