From 62e91ac3663e626660c46598399a0c0c670e2907 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer <siegfriedpammer@gmail.com> Date: Mon, 24 Mar 2014 19:35:30 +0100 Subject: [PATCH] remove UnitTestDebuggerService, it has become useless due to the IDebuggerService refactoring --- .../src/MSpecTestDebugger.cs | 2 +- .../Interfaces/UnitTestDebuggerService.cs | 117 ------------------ .../UnitTesting/NUnit/NUnitTestDebugger.cs | 2 +- .../TestRunner/TestDebuggerBase.cs | 2 +- .../Analysis/UnitTesting/UnitTesting.csproj | 1 - 5 files changed, 3 insertions(+), 121 deletions(-) delete mode 100644 src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestDebuggerService.cs diff --git a/src/AddIns/Analysis/MachineSpecifications/MachineSpecifications/src/MSpecTestDebugger.cs b/src/AddIns/Analysis/MachineSpecifications/MachineSpecifications/src/MSpecTestDebugger.cs index ab5e70f8f0..00201f7c31 100644 --- a/src/AddIns/Analysis/MachineSpecifications/MachineSpecifications/src/MSpecTestDebugger.cs +++ b/src/AddIns/Analysis/MachineSpecifications/MachineSpecifications/src/MSpecTestDebugger.cs @@ -28,7 +28,7 @@ namespace ICSharpCode.MachineSpecifications public class MSpecTestDebugger : TestDebuggerBase { public MSpecTestDebugger() - : base(new UnitTestDebuggerService(), SD.MessageService, new MSpecUnitTestMonitor()) + : base(SD.Debugger, SD.MessageService, new MSpecUnitTestMonitor()) { } diff --git a/src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestDebuggerService.cs b/src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestDebuggerService.cs deleted file mode 100644 index 12bfc6f9e0..0000000000 --- a/src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestDebuggerService.cs +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of this -// software and associated documentation files (the "Software"), to deal in the Software -// without restriction, including without limitation the rights to use, copy, modify, merge, -// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons -// to whom the Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE -// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -// DEALINGS IN THE SOFTWARE. - -using System; -using ICSharpCode.SharpDevelop; -using ICSharpCode.SharpDevelop.Debugging; - -namespace ICSharpCode.UnitTesting -{ - public class UnitTestDebuggerService : BaseDebuggerService - { - public override bool CanDebug(ICSharpCode.SharpDevelop.Project.IProject project) - { - return SD.Debugger.CanDebug(project); - } - public override bool Supports(DebuggerFeatures feature) - { - return SD.Debugger.Supports(feature); - } - public override void Start(System.Diagnostics.ProcessStartInfo processStartInfo) - { - SD.Debugger.Start(processStartInfo); - } - public override void StartWithoutDebugging(System.Diagnostics.ProcessStartInfo processStartInfo) - { - SD.Debugger.StartWithoutDebugging(processStartInfo); - } - public override void Stop() - { - SD.Debugger.Stop(); - } - public override void Break() - { - SD.Debugger.Break(); - } - public override void Continue() - { - SD.Debugger.Continue(); - } - public override void StepInto() - { - SD.Debugger.StepInto(); - } - public override void StepOver() - { - SD.Debugger.StepOver(); - } - public override void StepOut() - { - SD.Debugger.StepOut(); - } - public override void ShowAttachDialog() - { - SD.Debugger.ShowAttachDialog(); - } - public override void Attach(System.Diagnostics.Process process) - { - SD.Debugger.Attach(process); - } - public override void Detach() - { - SD.Debugger.Detach(); - } - public override bool SetInstructionPointer(string filename, int line, int column, bool dryRun) - { - return SD.Debugger.SetInstructionPointer(filename, line, column, dryRun); - } - public override void HandleToolTipRequest(ICSharpCode.SharpDevelop.Editor.ToolTipRequestEventArgs e) - { - SD.Debugger.HandleToolTipRequest(e); - } - public override void ToggleBreakpointAt(ICSharpCode.SharpDevelop.Editor.ITextEditor editor, int lineNumber) - { - SD.Debugger.ToggleBreakpointAt(editor, lineNumber); - } - public override void RemoveCurrentLineMarker() - { - SD.Debugger.RemoveCurrentLineMarker(); - } - public override bool IsDebugging { - get { return SD.Debugger.IsDebugging; } - } - public override bool IsProcessRunning { - get { - return SD.Debugger.IsProcessRunning; - } - } - public override bool BreakAtBeginning { - get { - return SD.Debugger.BreakAtBeginning; - } - set { - SD.Debugger.BreakAtBeginning = value; - } - } - public override bool IsAttached { - get { - return SD.Debugger.IsAttached; - } - } - } -} diff --git a/src/AddIns/Analysis/UnitTesting/NUnit/NUnitTestDebugger.cs b/src/AddIns/Analysis/UnitTesting/NUnit/NUnitTestDebugger.cs index 1b9c11801f..905c4c2ff5 100644 --- a/src/AddIns/Analysis/UnitTesting/NUnit/NUnitTestDebugger.cs +++ b/src/AddIns/Analysis/UnitTesting/NUnit/NUnitTestDebugger.cs @@ -31,7 +31,7 @@ namespace ICSharpCode.UnitTesting UnitTestingOptions options; public NUnitTestDebugger() - : this(new UnitTestDebuggerService(), + : this(SD.Debugger, SD.MessageService, new TestResultsReader(), UnitTestingOptions.Instance.Clone()) diff --git a/src/AddIns/Analysis/UnitTesting/TestRunner/TestDebuggerBase.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/TestDebuggerBase.cs index 9e25bb849f..ff9df06e94 100644 --- a/src/AddIns/Analysis/UnitTesting/TestRunner/TestDebuggerBase.cs +++ b/src/AddIns/Analysis/UnitTesting/TestRunner/TestDebuggerBase.cs @@ -33,7 +33,7 @@ namespace ICSharpCode.UnitTesting ITestResultsReader testResultsReader; public TestDebuggerBase() - : this(new UnitTestDebuggerService(), + : this(SD.Debugger, SD.MessageService, new TestResultsReader()) { diff --git a/src/AddIns/Analysis/UnitTesting/UnitTesting.csproj b/src/AddIns/Analysis/UnitTesting/UnitTesting.csproj index 7a49082db4..f0fc6bba0f 100644 --- a/src/AddIns/Analysis/UnitTesting/UnitTesting.csproj +++ b/src/AddIns/Analysis/UnitTesting/UnitTesting.csproj @@ -56,7 +56,6 @@ <Compile Include="Commands\RunningTestsCondition.cs" /> <Compile Include="Commands\TestableCondition.cs" /> <Compile Include="Commands\UnitTestCommands.cs" /> - <Compile Include="Interfaces\UnitTestDebuggerService.cs" /> <Compile Include="Pad\UnitTestNodeFactory.cs" /> <Compile Include="Service\ITestService.cs" /> <Compile Include="Model\ITest.cs" />