Beispiel #1
0
        public void InorderTraversalTest_1()
        {
            var input = new TreeNode(1);

            input.right      = new TreeNode(2);
            input.right.left = new TreeNode(3);

            var expected = new List <int> {
                1, 3, 2
            };
            var actual = _target.InorderTraversal(input);

            Assert.Equal(expected, actual);
        }