public void RenameTest() { IBaseTree tree = new BaseTree(); string root = "all"; string different = "different"; tree.AddWord((string)null, root); Assert.AreEqual(root, tree.Root.KeyWord); tree.Rename(tree.Root, different); Assert.AreEqual(tree.Root.KeyWord, different); }