diff options
Diffstat (limited to 'main/src/addins/NUnit/Commands')
-rw-r--r-- | main/src/addins/NUnit/Commands/NUnitCommands.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/NUnit/Commands/NUnitCommands.cs b/main/src/addins/NUnit/Commands/NUnitCommands.cs index f0d9322df4..22f6ebb2d3 100644 --- a/main/src/addins/NUnit/Commands/NUnitCommands.cs +++ b/main/src/addins/NUnit/Commands/NUnitCommands.cs @@ -64,7 +64,7 @@ namespace MonoDevelop.NUnit.Commands { protected override void Run () { - IWorkspaceObject ob = IdeApp.ProjectOperations.CurrentSelectedBuildTarget; + WorkspaceObject ob = IdeApp.ProjectOperations.CurrentSelectedObject; if (ob != null) { UnitTest test = NUnitService.Instance.FindRootTest (ob); if (test != null) @@ -74,7 +74,7 @@ namespace MonoDevelop.NUnit.Commands protected override void Update (CommandInfo info) { - IWorkspaceObject ob = IdeApp.ProjectOperations.CurrentSelectedBuildTarget; + WorkspaceObject ob = IdeApp.ProjectOperations.CurrentSelectedObject; if (ob != null) { UnitTest test = NUnitService.Instance.FindRootTest (ob); info.Enabled = (test != null); |