public void TestGetPerson() { People people = new People(); Person person = new Person("c", "c", "c"); people.addPerson(person); Person result = people.getPerson(person); Assert.AreSame(person, result); }
public void TestGetPersonWithIDFail() { People people = new People(); Person person = new Person(); people.addPerson(person); Assert.AreEqual(false, people.getPerson(2).Item1); }
public void TestGetPersonWithID() { People people = new People(); Person person = new Person(); people.addPerson(person); Assert.AreSame(person, people.getPerson(person.id).Item2); }
public void TestGetPersonFail() { People people = new People(); Assert.IsFalse(people.getPerson(0).Item1); }
public void TestOneEmptyNotSameAsNewEmpty() { People people = new People(); people.addPerson(new Person()); Assert.IsFalse(people.getPerson(0).Equals(new Person())); }