public void IsPerson() { IoC.I4IoC <School.Person> iPerson = new IoC.BasicClassInversion <School.Person>(); string expected = "Person"; string returned = iPerson.WhoAmI(); Assert.IsTrue(expected == returned, "Expected: {0} Returned: {1}", expected, returned); }
public void IsClass() { IoC.I4IoC <School.ClassRoom> iClass = new IoC.BasicClassInversion <School.ClassRoom>(); string expected = "ClassRoom"; string returned = iClass.WhoAmI(); Assert.IsTrue(expected == returned, "Expected: {0} Returned: {1}", expected, returned); }
public void IsPersonStudent() { IoC.I4IoC <School.Person> iStudent = new IoC.BasicClassInversion <School.Student>(); string expected = "Student"; string returned = iStudent.WhoAmI(); Assert.IsTrue(expected == returned, "Expected: {0} Returned: {1}", expected, returned); }