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