Browse Source

Fixed build.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3517 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 17 years ago
parent
commit
05c09266d3
  1. 13
      src/AddIns/BackendBindings/Python/PythonBinding/Test/RunPythonCommandTestFixture.cs

13
src/AddIns/BackendBindings/Python/PythonBinding/Test/RunPythonCommandTestFixture.cs

@ -12,11 +12,11 @@ using ICSharpCode.SharpDevelop; @@ -12,11 +12,11 @@ using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Gui;
using NUnit.Framework;
using PythonBinding.Tests.Utils;
namespace PythonBinding.Tests
{
/// <summary>
/// Tests that the RunPythonCommand class runs the Python console
/// Tests that the RunPythonCommand class runs the Python console
/// passing the filename of the python script active in SharpDevelop.
/// </summary>
[TestFixture]
@ -53,8 +53,8 @@ namespace PythonBinding.Tests @@ -53,8 +53,8 @@ namespace PythonBinding.Tests
// Create the message view category.
messageViewCategory = new MessageViewCategory("Python");
messageViewCategory.Cleared += MessageViewCategoryCleared;
messageViewCategory.TextSet += MessageViewCategoryCleared;
// Run the command.
RunPythonCommand command = new RunPythonCommand(workbench, options, processRunner, messageViewCategory, padDescriptor);
command.Run();
@ -118,9 +118,10 @@ namespace PythonBinding.Tests @@ -118,9 +118,10 @@ namespace PythonBinding.Tests
Assert.IsFalse(condition.IsValid(null, null));
}
void MessageViewCategoryCleared(object sender, EventArgs e)
void MessageViewCategoryCleared(object sender, TextEventArgs e)
{
messageViewCategoryCleared = true;
if (e.Text == "")
messageViewCategoryCleared = true;
}
}
}

Loading…
Cancel
Save