diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-03-07 21:35:05 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-03-07 21:35:40 +0300 |
commit | b580ef93643103f1df59d686862b15de50b63e5f (patch) | |
tree | 09f66acb1664e2b570061ad8d540af977192983e /main/src/addins/NUnit | |
parent | f3bb1fa445cb6f308a5162df20bbce269e1ce8b2 (diff) |
Stop running operations before start testing.
Diffstat (limited to 'main/src/addins/NUnit')
-rw-r--r-- | main/src/addins/NUnit/Services/NUnitService.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/addins/NUnit/Services/NUnitService.cs b/main/src/addins/NUnit/Services/NUnitService.cs index 7e4e115517..a86bb3abf6 100644 --- a/main/src/addins/NUnit/Services/NUnitService.cs +++ b/main/src/addins/NUnit/Services/NUnitService.cs @@ -147,6 +147,9 @@ namespace MonoDevelop.NUnit } } + if (!IdeApp.ProjectOperations.ConfirmExecutionOperation ()) + return NullProcessAsyncOperation.Failure; + Pad resultsPad = IdeApp.Workbench.GetPad <TestResultsPad>(); if (resultsPad == null) { resultsPad = IdeApp.Workbench.ShowPad (new TestResultsPad (), "MonoDevelop.NUnit.TestResultsPad", GettextCatalog.GetString ("Test results"), "Bottom", "md-solution"); @@ -168,6 +171,8 @@ namespace MonoDevelop.NUnit session.Start (); + IdeApp.ProjectOperations.CurrentRunOperation = session; + return session; } |