Exemplo n.º 1
0
        public void ValidateMother()
        {
            Person       mother   = new Person("Queen Anga", "Female", ListOfRelations);
            Person       person   = new Person("Chit", "Male", ListOfRelations);
            Relationship relation = new Relationship(mother, person, "Child");

            ListOfRelations.Add(relation);

            Person findmother = person.Mother();

            Assert.AreEqual(mother, findmother);
        }