Пример #1
0
        public void ListOfBSTDepthTest()
        {
            int[] arr  = { 1, 2, 3, 4, 5, 6, 7 };
            Node  node = _treesAndGraphs.MinimalTree(arr);
            List <LinkedList <Node> > result = _treesAndGraphs.ListOfBSTDepths(node);

            List <LinkedList <Node> > expected = CreateListOfLinkedListsNodesFor_ListOfDepths();



            Assert.IsTrue(IsNodesListsOfDeptshAreEqual(expected, result));
        }