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