Exemplo n.º 1
0
        public void NodeDoesNotFindNonExistantChild()
        {
            Node parentNode = new Node('*', 0);
            Node childNodeA = new Node('a', 1);
            Node childNodeB = new Node('b', 1);
            Node childNodeC = new Node('c', 1);

            parentNode.Children.Add(childNodeA);
            parentNode.Children.Add(childNodeB);
            parentNode.Children.Add(childNodeC);

            var foundNode = parentNode.FindChildNode('d');

            Assert.IsNull(foundNode);
        }