Ejemplo n.º 1
0
        public void TestCoursesAndStudents()
        {
            School academy = new School();
            string[] letters = new string[] { "s", "a", "e", "ela", "ina", "ka", "ona", };

            for (int i = 0; i < 5; i++)
            {
                Course pesho = new Course("Course #" + i);

                for (int j = 0; j < 30; j++)
                {
                    Student thisStudent = new Student("Ivan" + letters[i % letters.Length], (10344 * (i + 1)) + j);
                    pesho.AddStudent(thisStudent);
                    academy.AddStudentToSchool(thisStudent);
                }

                academy.AddCourseToSchool(pesho);
            }

            Assert.AreEqual(this.RetutnInfo(150, 5), academy.ShowInformationAboutSchool());
        }
Ejemplo n.º 2
0
 public void TestSchool()
 {
     School academy = new School();
     Assert.AreEqual(this.RetutnInfo(0, 0), academy.ShowInformationAboutSchool());
 }