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); } }