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 @@ -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);

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

@ -81,12 +81,12 @@ namespace XmlEditor.Tests.Utils @@ -81,12 +81,12 @@ namespace XmlEditor.Tests.Utils
/// <summary>
/// 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.
/// </summary>
public void CallXmlElementTreeViewDeleteKeyPressed()
{
base.XmlElementTreeViewDeleteKeyPressed(this, new EventArgs());
base.XmlElementTreeViewKeyPressed(this, new XmlTreeViewKeyPressedEventArgs(Keys.Delete));
}
/// <summary>

Loading…
Cancel
Save