Ejemplo n.º 1
0
 public void GetInvalidStudentID()
 {
     School.Lib.School school = new School.Lib.School();
     school.GetStudentByUID(10000);
 }
Ejemplo n.º 2
0
 public void CreateSchool()
 {
     School.Lib.School school = new School.Lib.School();
     Assert.IsNotNull(school);
 }
Ejemplo n.º 3
0
 public void GetInvalidCourseName()
 {
     School.Lib.School school = new School.Lib.School();
     school.GetCourseByName("lal");
 }
Ejemplo n.º 4
0
 public void AddDuplicatedIDStudent()
 {
     School.Lib.School school = new School.Lib.School();
     school.AddStudent("lala", 10000);
     school.AddStudent("2222", 10000);
 }
Ejemplo n.º 5
0
 public void AddStudent()
 {
     School.Lib.School school = new School.Lib.School();
     school.AddStudent("lala", 10000);
     Assert.AreEqual("lala", school.GetStudentByUID(10000).Name);
 }
Ejemplo n.º 6
0
 public void AddDuplicatedCourse()
 {
     School.Lib.School school = new School.Lib.School();
     school.AddCourse(new Course("lol"));
     school.AddCourse(new Course("lol"));
 }
Ejemplo n.º 7
0
 public void AddCourseWithStudents()
 {
     School.Lib.School school = new School.Lib.School();
     school.AddCourse("lol", new Student("lele", 10000), new Student("male", 10001));
     Assert.AreEqual("lol", school.GetCourseByName("lol").CourseName);
 }
Ejemplo n.º 8
0
 public void AddCourse()
 {
     School.Lib.School school = new School.Lib.School();
     school.AddCourse(new Course("lol"));
     Assert.AreEqual("lol", school.GetCourseByName("lol").CourseName);
 }
Ejemplo n.º 9
0
 public void AddBadIDStudentLow()
 {
     School.Lib.School school = new School.Lib.School();
     school.AddStudent("lala", 9999);
 }
Ejemplo n.º 10
0
 public void AddBadIDStudentHigh()
 {
     School.Lib.School school = new School.Lib.School();
     school.AddStudent("lala", 100000);
 }