示例#1
0
        public void GivenRootNodesAreSetWhenAddingChildToMotherThenChildWillBeAdded()
        {
            var newNode   = _familyTree.AddChild(FamilyTree.QueenName, ChildName, Gender.Female);
            var queenNode = _familyTree.FindByName(FamilyTree.QueenName);

            Assert.IsNotNull(newNode);
            Assert.AreEqual(newNode.Gender, Gender.Female);
            Assert.AreEqual(newNode.Mother, queenNode);
        }