public void GetKeysPostOrder_CorrectReturn() { var tree = new AvlTree <int>(); tree.AddRange(new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }); tree.GetKeysPostOrder().SequenceEqual(new[] { 1, 3, 2, 5, 7, 6, 10, 9, 8, 4 }).Should().BeTrue(); }
public void GetKeysPostOrder_EmptyTree_CorrectReturn() { var tree = new AvlTree <int>(); tree.GetKeysPostOrder().SequenceEqual(Array.Empty <int>()).Should().BeTrue(); }