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;
using ICSharpCode.SharpDevelop.Gui; using ICSharpCode.SharpDevelop.Gui;
using NUnit.Framework; using NUnit.Framework;
using PythonBinding.Tests.Utils; using PythonBinding.Tests.Utils;
namespace PythonBinding.Tests namespace PythonBinding.Tests
{ {
/// <summary> /// <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. /// passing the filename of the python script active in SharpDevelop.
/// </summary> /// </summary>
[TestFixture] [TestFixture]
@ -53,8 +53,8 @@ namespace PythonBinding.Tests
// Create the message view category. // Create the message view category.
messageViewCategory = new MessageViewCategory("Python"); messageViewCategory = new MessageViewCategory("Python");
messageViewCategory.Cleared += MessageViewCategoryCleared; messageViewCategory.TextSet += MessageViewCategoryCleared;
// Run the command. // Run the command.
RunPythonCommand command = new RunPythonCommand(workbench, options, processRunner, messageViewCategory, padDescriptor); RunPythonCommand command = new RunPythonCommand(workbench, options, processRunner, messageViewCategory, padDescriptor);
command.Run(); command.Run();
@ -118,9 +118,10 @@ namespace PythonBinding.Tests
Assert.IsFalse(condition.IsValid(null, null)); 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