Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public void TestGetPersonWithIDFail()
        {
            People people = new People();
            Person person = new Person();

            people.addPerson(person);

            Assert.AreEqual(false, people.getPerson(2).Item1);
        }
Ejemplo n.º 3
0
        public void TestGetPersonWithID()
        {
            People people = new People();
            Person person = new Person();

            people.addPerson(person);
            Assert.AreSame(person, people.getPerson(person.id).Item2);
        }
Ejemplo n.º 4
0
 public void TestGetPersonFail()
 {
     People people = new People();
     Assert.IsFalse(people.getPerson(0).Item1);
 }
Ejemplo n.º 5
0
 public void TestOneEmptyNotSameAsNewEmpty()
 {
     People people = new People();
     people.addPerson(new Person());
     Assert.IsFalse(people.getPerson(0).Equals(new Person()));
 }