Esempio n. 1
0
 public void GetInvalidStudentID()
 {
     School.Lib.School school = new School.Lib.School();
     school.GetStudentByUID(10000);
 }
Esempio n. 2
0
 public void CreateSchool()
 {
     School.Lib.School school = new School.Lib.School();
     Assert.IsNotNull(school);
 }
Esempio n. 3
0
 public void GetInvalidCourseName()
 {
     School.Lib.School school = new School.Lib.School();
     school.GetCourseByName("lal");
 }
Esempio n. 4
0
 public void AddDuplicatedIDStudent()
 {
     School.Lib.School school = new School.Lib.School();
     school.AddStudent("lala", 10000);
     school.AddStudent("2222", 10000);
 }
Esempio 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);
 }
Esempio n. 6
0
 public void AddDuplicatedCourse()
 {
     School.Lib.School school = new School.Lib.School();
     school.AddCourse(new Course("lol"));
     school.AddCourse(new Course("lol"));
 }
Esempio 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);
 }
Esempio 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);
 }
Esempio n. 9
0
 public void AddBadIDStudentLow()
 {
     School.Lib.School school = new School.Lib.School();
     school.AddStudent("lala", 9999);
 }
Esempio n. 10
0
 public void AddBadIDStudentHigh()
 {
     School.Lib.School school = new School.Lib.School();
     school.AddStudent("lala", 100000);
 }