コード例 #1
0
ファイル: SchoolTest.cs プロジェクト: smghacker/S-M-G
 public void SchoolAddCertainStudentWhoExistsAlreadyTest()
 {
     School school = new School(new List<Student>(), new List<Course>());
     Student student = new Student("Svetlin", 11111);
     Student student1 = new Student("Pesho", 11111);
     school.AddStudent(student);
     school.AddStudent(student1);
     Assert.AreEqual(1, school.AllStudents.Count);
 }
コード例 #2
0
ファイル: SchoolTest.cs プロジェクト: smghacker/S-M-G
 public void SchoolAddStudentToSchoolRegularTest()
 {
     School school = new School(new List<Student>(), new List<Course>());
     Student student = new Student("Svetlin", 11111);
     school.AddStudent(student);
     Assert.AreEqual(1, school.AllStudents.Count);
 }