public void CopyRootElementAndPasteToRootElement() { treeView.SelectedNode = htmlTreeNode; treeViewContainerControl.Copy(); bool pasteEnabled = treeViewContainerControl.EnablePaste; treeViewContainerControl.Paste(); XmlElement pastedElement = (XmlElement)htmlElement.LastChild; XmlElementTreeNode pastedTreeNode = htmlTreeNode.LastNode as XmlElementTreeNode; Assert.AreEqual(htmlElement.Name, pastedElement.Name); Assert.AreEqual(pastedElement.Name, pastedTreeNode.Text); Assert.AreSame(pastedElement, pastedTreeNode.XmlElement); Assert.IsTrue(pasteEnabled); }