Exemple #1
0
        public void ToArrayPostOrderTest()
        {
            var tree = new BinarySearchTree <int>(new int[] { 1, 2, 3, 4, 5 });

            Assert.That(tree.ToArrayPostOrder(), Is.EqualTo(new int[] { 5, 4, 3, 2, 1 }));
        }