Пример #1
0
        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);
        }
Пример #2
0
 public void Add(Person p)
 {
     pa[index++] = p;
     //pa[index] = p;
     //index++;
 }