diff options
author | Keting Yang <ketyang@microsoft.com> | 2019-09-05 23:30:24 +0300 |
---|---|---|
committer | Keting Yang <ketyang@microsoft.com> | 2019-09-05 23:30:24 +0300 |
commit | 72d5f120e4cd12af71949718371ebf3d4092f205 (patch) | |
tree | 9c14cc4b956d594b19e5630c4c39bbaf656014c9 /main/src/addins/MonoDevelop.UnitTesting | |
parent | 93c1b5300b0b91dfc1312a2e56cbfdd55c05b178 (diff) |
Fixes "Run All Tests" with keyboard shortcut
Support "run all tests" with multiple test projects under one solution (The previous version will only run the unit tests from one of the projects)
Diffstat (limited to 'main/src/addins/MonoDevelop.UnitTesting')
-rw-r--r-- | main/src/addins/MonoDevelop.UnitTesting/Commands/UnitTestCommands.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.UnitTesting/Commands/UnitTestCommands.cs b/main/src/addins/MonoDevelop.UnitTesting/Commands/UnitTestCommands.cs index baa70d530a..0fcda3f9ba 100644 --- a/main/src/addins/MonoDevelop.UnitTesting/Commands/UnitTestCommands.cs +++ b/main/src/addins/MonoDevelop.UnitTesting/Commands/UnitTestCommands.cs @@ -74,7 +74,7 @@ namespace MonoDevelop.UnitTesting.Commands { protected override void Run () { - WorkspaceObject ob = IdeApp.ProjectOperations.CurrentSelectedObject; + SolutionFolder ob = IdeApp.ProjectOperations.CurrentSelectedSolution.RootFolder; if (ob != null) { UnitTest test = UnitTestService.FindRootTest (ob); if (test != null) @@ -84,7 +84,7 @@ namespace MonoDevelop.UnitTesting.Commands protected override void Update (CommandInfo info) { - WorkspaceObject ob = IdeApp.ProjectOperations.CurrentSelectedObject; + SolutionFolder ob = IdeApp.ProjectOperations.CurrentSelectedSolution.RootFolder; if (ob != null) { UnitTest test = UnitTestService.FindRootTest (ob); info.Enabled = (test != null); |