コード例 #1
0
        public void TestStudentsCreationWithExistingOneShouldThrowException()
        {
            var testSchool = new School.School("testSchoolName");

            testSchool.GenerateStudent("Test Student Name", 10001);
            testSchool.GenerateStudent("Test Student Name Two", 10001);
        }
コード例 #2
0
 public void TestGenerateStudentMethodShouldWorkProperly()
 {
     var testSchool = new School.School("Test School");
     testSchool.GenerateStudent("Test Student Name", 10001);
     Assert.AreEqual(
         testSchool.ListOfStudents[0].Name,
         "Test Student Name",
         "Generated student name is not equal to the one entered."
         );
 }
コード例 #3
0
        public void TestGenerateStudentMethodShouldWorkProperly()
        {
            var testSchool = new School.School("Test School");

            testSchool.GenerateStudent("Test Student Name", 10001);
            Assert.AreEqual(
                testSchool.ListOfStudents[0].Name,
                "Test Student Name",
                "Generated student name is not equal to the one entered."
                );
        }
コード例 #4
0
 public void TestStudentsCreationWithExistingOneShouldThrowException()
 {
     var testSchool = new School.School("testSchoolName");
     testSchool.GenerateStudent("Test Student Name", 10001);
     testSchool.GenerateStudent("Test Student Name Two", 10001);
 }