Exemplo n.º 1
0
 public void Should_Traverse_Pre_Order()
 {
     Traversal.PreOrder(root, Visit);
     CollectionAssert.AreEqual(_visited, new []
     {
         root, child1, child1_1, child2, child2_1, child2_2,
         child3, child3_1, child3_2, child3_3
     });
 }