Beispiel #1
0
        public void ValidateSpouse()
        {
            Person       father = new Person("King Shan", "Male", ListOfRelations);
            Person       mother = new Person("Queen Anga", "Female", ListOfRelations);
            Relationship spouse = new Relationship(father, mother, "Spouse");

            ListOfRelations.Add(spouse);

            Person husband = mother.Spouse();

            Assert.AreEqual(father, husband);
        }