Example #1
0
 public void Should_Traverse_Reverse_Level_Order()
 {
     Traversal.ReverseLevelOrder(root, Visit);
     CollectionAssert.AreEqual(_visited, new[]
     {
         child1_1, child2_1, child2_2, child3_1, child3_2,
         child3_3, child1, child2, child3, root
     });
 }