diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-06-16 22:51:07 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-06-16 22:51:07 +0300 |
commit | 1b0f862d35745b087b342a73d220f3691cfb8a73 (patch) | |
tree | f43606dabed04df4e23818efba573578215aed49 /main/src/addins/NUnit | |
parent | 16c3474c0dceb930a88a7e2bc65abbcb9606d07a (diff) |
[Test] Don't enable Debug Test while a test is running.
Diffstat (limited to 'main/src/addins/NUnit')
-rw-r--r-- | main/src/addins/NUnit/Gui/TestPad.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/main/src/addins/NUnit/Gui/TestPad.cs b/main/src/addins/NUnit/Gui/TestPad.cs index b32f9ad271..bb225367f8 100644 --- a/main/src/addins/NUnit/Gui/TestPad.cs +++ b/main/src/addins/NUnit/Gui/TestPad.cs @@ -443,9 +443,12 @@ namespace MonoDevelop.NUnit return; foreach (var mode in debugModeSet.ExecutionModes) { - if (test.CanRun (mode.ExecutionHandler)) - info.Add (GettextCatalog.GetString ("Debug Test ({0})", mode.Name), mode.Id); + if (test.CanRun (mode.ExecutionHandler)) { + var ci = info.Add (GettextCatalog.GetString ("Debug Test ({0})", mode.Name), mode.Id); + ci.Enabled = runningTestOperation == null; + } } + if (info.Count == 1) info [0].Text = GettextCatalog.GetString ("Debug Test"); } |