Browse Source

Fixed XmlEditor tests.

pull/516/head
Andreas Weizel 11 years ago
parent
commit
4329ac1711
  1. 2
      src/AddIns/DisplayBindings/XmlEditor/Test/Tree/DeleteTreeNodeWithDeleteKeyTestFixture.cs
  2. 4
      src/AddIns/DisplayBindings/XmlEditor/Test/Utils/DerivedXmlTreeViewContainerControl.cs

2
src/AddIns/DisplayBindings/XmlEditor/Test/Tree/DeleteTreeNodeWithDeleteKeyTestFixture.cs

@ -36,7 +36,7 @@ namespace XmlEditor.Tests.Tree
public void DeleteKeyPressed() public void DeleteKeyPressed()
{ {
using (DerivedXmlTreeViewControl treeView = new DerivedXmlTreeViewControl()) { using (DerivedXmlTreeViewControl treeView = new DerivedXmlTreeViewControl()) {
treeView.DeleteKeyPressed += TreeViewDeleteKeyPressed; treeView.TreeViewKeyPressed += TreeViewDeleteKeyPressed;
treeView.CallProcessCmdKey(Keys.Delete); treeView.CallProcessCmdKey(Keys.Delete);
} }
Assert.IsTrue(deleteKeyPressEventFired); Assert.IsTrue(deleteKeyPressEventFired);

4
src/AddIns/DisplayBindings/XmlEditor/Test/Utils/DerivedXmlTreeViewContainerControl.cs

@ -81,12 +81,12 @@ namespace XmlEditor.Tests.Utils
/// <summary> /// <summary>
/// Allows us to call the XmlTreeViewContainer's /// 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. /// pressing the delete key in the xml tree view control.
/// </summary> /// </summary>
public void CallXmlElementTreeViewDeleteKeyPressed() public void CallXmlElementTreeViewDeleteKeyPressed()
{ {
base.XmlElementTreeViewDeleteKeyPressed(this, new EventArgs()); base.XmlElementTreeViewKeyPressed(this, new XmlTreeViewKeyPressedEventArgs(Keys.Delete));
} }
/// <summary> /// <summary>

Loading…
Cancel
Save