Exemple #1
0
        public void BinaryTree_Depth_Recursive_Should_Pass()
        {
            var root  = this.CreateTestTree();
            var t     = new BinaryTree <int>(root);
            int depth = t.GetDepth(AlgorithmType.Recursive);

            depth.Should().Be(4, "depth is incorrect.");
        }