public void VerifyClass() { School.Professor professor = new School.Professor { Id = 6, Name = "Will" }; School.ClassRoom classRoom = new School.ClassRoom { Description = "Game Developer", Id = 50, MinGradeForPass = 8f, Name = "GD5", Professor = professor }; IoC.I4IoC <School.ClassRoom> iClassRoom = classRoom; string expected = "50 - GD5 (6 - Will) - Game Developer"; string returned = iClassRoom.ToString(); Assert.IsTrue(expected == returned, "Expected: {0} Returned: {1}", expected, returned); }
public void VerifyProfessor() { School.Professor professor = new School.Professor { Id = 10, Name = "Rick", Age = 43 }; IoC.I4IoC <School.Person> iProfessor = professor; string expected = "10 - Rick"; string returned = iProfessor.ToString(); Assert.IsTrue(expected == returned, "Expected: {0} Returned: {1}", expected, returned); }
public void VerifyPerson() { School.Person person = new School.Person { Id = 11, Name = "Jack", Age = 60 }; IoC.I4IoC <School.Person> iPerson = person; string expected = "11 - Jack"; string returned = iPerson.ToString(); Assert.IsTrue(expected == returned, "Expected: {0} Returned: {1}", expected, returned); }
public void VerifyStudent() { School.Student student = new School.Student { Id = 11, Name = "Jack", Age = 60 }; IoC.I4IoC <School.Person> iStudent = student; string expected = "11 - Jack - 60"; string returned = iStudent.ToString(); Assert.IsTrue(expected == returned, "Expected: {0} Returned: {1}", expected, returned); }