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 Add(Person p) { pa[index++] = p; //pa[index] = p; //index++; }