From 4329ac17114eaef710dd786afab262822a18f356 Mon Sep 17 00:00:00 2001 From: Andreas Weizel Date: Mon, 14 Jul 2014 01:53:53 +0200 Subject: [PATCH] Fixed XmlEditor tests. --- .../Test/Tree/DeleteTreeNodeWithDeleteKeyTestFixture.cs | 2 +- .../Test/Utils/DerivedXmlTreeViewContainerControl.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)); } ///