Ejemplo n.º 1
0
        public void TestStudentsCreationWithExistingOneShouldThrowException()
        {
            var testSchool = new School.School("testSchoolName");

            testSchool.GenerateStudent("Test Student Name", 10001);
            testSchool.GenerateStudent("Test Student Name Two", 10001);
        }
Ejemplo n.º 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."
         );
 }
Ejemplo n.º 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."
                );
        }
Ejemplo n.º 4
0
 public void TestStudentsCreationWithExistingOneShouldThrowException()
 {
     var testSchool = new School.School("testSchoolName");
     testSchool.GenerateStudent("Test Student Name", 10001);
     testSchool.GenerateStudent("Test Student Name Two", 10001);
 }