예제 #1
0
        private void AssertTreeValid(string description, AvlTree <int, int> tree)
        {
            Console.WriteLine(tree.Description());

            Assert.Equal(description, tree.Description());

            if (tree.Root != null)
            {
                Assert.Null(tree.Root.Parent);
            }
            else if (description == "")
            {
                Assert.Null(tree.Root);
            }
        }