public void PostOrderTestTree6()
        {
            var expected = new List <int> {
                8, 9, 7, 11, 18, 15, 10
            };
            var actual = BinaryTreeTraversePostOrder1RecursiveComplete.TraversePostOrder(BinaryTreeNodeTestData.Tree6);

            CollectionAssert.AreEqual(expected, actual);
        }
        public void PostOrderTestTree14()
        {
            var expected = new List <int> {
                6, 4, 2, 7, 5, 3, 1
            };
            var actual = BinaryTreeTraversePostOrder1RecursiveComplete.TraversePostOrder(BinaryTreeNodeTestData.Tree14);

            CollectionAssert.AreEqual(expected, actual);
        }
        public void PostOrderTestTree12()
        {
            var expected = new List <int> {
                5, 7, 6, 10, 12, 11, 9, 16, 18, 17, 24, 26, 25, 23, 15
            };
            var actual = BinaryTreeTraversePostOrder1RecursiveComplete.TraversePostOrder(BinaryTreeNodeTestData.Tree12);

            CollectionAssert.AreEqual(expected, actual);
        }
        public void PostOrderTestNullTree()
        {
            var actual = BinaryTreeTraversePostOrder1RecursiveComplete.TraversePostOrder(null);

            Assert.AreEqual(0, actual.Count);
        }