diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Tree/DeleteTreeNodeWithDeleteKeyTestFixture.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Tree/DeleteTreeNodeWithDeleteKeyTestFixture.cs index f4d66450ed..e729cf5e57 100644 --- a/src/AddIns/DisplayBindings/XmlEditor/Test/Tree/DeleteTreeNodeWithDeleteKeyTestFixture.cs +++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Tree/DeleteTreeNodeWithDeleteKeyTestFixture.cs @@ -36,7 +36,7 @@ namespace XmlEditor.Tests.Tree public void DeleteKeyPressed() { using (DerivedXmlTreeViewControl treeView = new DerivedXmlTreeViewControl()) { - treeView.DeleteKeyPressed += TreeViewDeleteKeyPressed; + treeView.TreeViewKeyPressed += TreeViewDeleteKeyPressed; treeView.CallProcessCmdKey(Keys.Delete); } Assert.IsTrue(deleteKeyPressEventFired); diff --git a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/DerivedXmlTreeViewContainerControl.cs b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/DerivedXmlTreeViewContainerControl.cs index 2dc02aab78..bda239d255 100644 --- a/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/DerivedXmlTreeViewContainerControl.cs +++ b/src/AddIns/DisplayBindings/XmlEditor/Test/Utils/DerivedXmlTreeViewContainerControl.cs @@ -81,12 +81,12 @@ namespace XmlEditor.Tests.Utils /// /// Allows us to call the XmlTreeViewContainer's - /// XmlElementTreeViewDeleteKeyPressed method to fake the user + /// XmlElementTreeViewKeyPressed method to fake the user /// pressing the delete key in the xml tree view control. /// public void CallXmlElementTreeViewDeleteKeyPressed() { - base.XmlElementTreeViewDeleteKeyPressed(this, new EventArgs()); + base.XmlElementTreeViewKeyPressed(this, new XmlTreeViewKeyPressedEventArgs(Keys.Delete)); } ///