From 07afc1301b97d46e41006166bc18ba15768847bc Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 8 Sep 2012 14:56:45 +0200 Subject: [PATCH] [UnitTesting] Clean up directory structure --- .../IRunTestCommandContext.cs | 0 .../MultipleProjectBuildable.cs | 0 .../{ => Commands}/RunTestCommandContext.cs | 0 .../RunningTestsCondition.cs | 0 .../TestableCondition.cs | 0 .../UnitTestBuildOptions.cs | 0 .../UnitTestBuildProjectFactory.cs | 0 .../UnitTestDebuggerService.cs | 0 .../UnitTestFileService.cs | 0 .../{ => Interfaces}/UnitTestProcessRunner.cs | 0 .../UnitTestSaveAllFilesCommand.cs | 0 .../UnitTestTaskService.cs | 0 .../UnitTestWorkbench.cs | 0 .../{Service => Model}/TestResult.cs | 0 .../{ => Options}/UnitTestingOptions.cs | 0 .../UnitTestingOptionsPanel.xaml | 0 .../UnitTestingOptionsPanel.xaml.cs | 0 .../{Gui => Pad}/EmptyUnitTestsPad.cs | 0 .../{Interfaces => Pad}/IUnitTestsPad.cs | 0 .../UnitTesting/{Gui => Pad}/UnitTestsPad.cs | 0 .../Analysis/UnitTesting/RemovedClasses.cs | 51 -------- .../IRegisteredTestFrameworks.cs | 0 .../ITestFramework.cs | 0 .../ITestFrameworkFactory.cs | 0 .../ITestResultsMonitor.cs | 2 +- .../RegisteredTestFrameworks.cs | 0 .../TestFrameworkDescriptor.cs | 0 .../TestFrameworkDoozer.cs | 0 .../TestFrameworkFactory.cs | 0 .../{Service => TestFramework}/TestService.cs | 0 .../{Interfaces => TestRunner}/ITestRunner.cs | 4 +- .../MessageReceivedEventArgs.cs | 2 - .../{Service => TestRunner}/SelectedTests.cs | 0 .../TestDebuggerBase.cs | 0 .../TestFinishedEventArgs.cs | 2 - .../TestProcessRunnerBase.cs | 0 .../TestProcessRunnerBaseContext.cs | 0 .../{ => TestRunner}/TestResultTask.cs | 0 .../{ => TestRunner}/TestResultsMonitor.cs | 2 +- .../{ => TestRunner}/TestResultsReader.cs | 0 .../{Service => TestRunner}/TestRunnerBase.cs | 4 +- .../{Nodes => TreeView}/ClassUnitTestNode.cs | 0 .../{Interfaces => TreeView}/ITestTreeView.cs | 0 .../{Nodes => TreeView}/MemberUnitTestNode.cs | 0 .../NamespaceUnitTestNode.cs | 0 .../ProjectUnitTestNode.cs | 0 .../{Nodes => TreeView}/RootUnitTestNode.cs | 0 .../{ => TreeView}/TestTreeView.cs | 0 .../{Nodes => TreeView}/UnitTestBaseNode.cs | 0 .../Analysis/UnitTesting/UnitTesting.csproj | 111 +++++++++--------- 50 files changed, 62 insertions(+), 116 deletions(-) rename src/AddIns/Analysis/UnitTesting/{Interfaces => Commands}/IRunTestCommandContext.cs (100%) rename src/AddIns/Analysis/UnitTesting/{ => Commands}/MultipleProjectBuildable.cs (100%) rename src/AddIns/Analysis/UnitTesting/{ => Commands}/RunTestCommandContext.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Service => Commands}/RunningTestsCondition.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Service => Commands}/TestableCondition.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Implementation => Interfaces}/UnitTestBuildOptions.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Implementation => Interfaces}/UnitTestBuildProjectFactory.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Implementation => Interfaces}/UnitTestDebuggerService.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Implementation => Interfaces}/UnitTestFileService.cs (100%) rename src/AddIns/Analysis/UnitTesting/{ => Interfaces}/UnitTestProcessRunner.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Implementation => Interfaces}/UnitTestSaveAllFilesCommand.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Implementation => Interfaces}/UnitTestTaskService.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Implementation => Interfaces}/UnitTestWorkbench.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Service => Model}/TestResult.cs (100%) rename src/AddIns/Analysis/UnitTesting/{ => Options}/UnitTestingOptions.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Gui => Options}/UnitTestingOptionsPanel.xaml (100%) rename src/AddIns/Analysis/UnitTesting/{Gui => Options}/UnitTestingOptionsPanel.xaml.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Gui => Pad}/EmptyUnitTestsPad.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Interfaces => Pad}/IUnitTestsPad.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Gui => Pad}/UnitTestsPad.cs (100%) delete mode 100644 src/AddIns/Analysis/UnitTesting/RemovedClasses.cs rename src/AddIns/Analysis/UnitTesting/{Interfaces => TestFramework}/IRegisteredTestFrameworks.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Interfaces => TestFramework}/ITestFramework.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Interfaces => TestFramework}/ITestFrameworkFactory.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Interfaces => TestFramework}/ITestResultsMonitor.cs (88%) rename src/AddIns/Analysis/UnitTesting/{Service => TestFramework}/RegisteredTestFrameworks.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Service => TestFramework}/TestFrameworkDescriptor.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Service => TestFramework}/TestFrameworkDoozer.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Service => TestFramework}/TestFrameworkFactory.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Service => TestFramework}/TestService.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Interfaces => TestRunner}/ITestRunner.cs (78%) rename src/AddIns/Analysis/UnitTesting/{Service => TestRunner}/MessageReceivedEventArgs.cs (83%) rename src/AddIns/Analysis/UnitTesting/{Service => TestRunner}/SelectedTests.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Service => TestRunner}/TestDebuggerBase.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Service => TestRunner}/TestFinishedEventArgs.cs (83%) rename src/AddIns/Analysis/UnitTesting/{Service => TestRunner}/TestProcessRunnerBase.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Service => TestRunner}/TestProcessRunnerBaseContext.cs (100%) rename src/AddIns/Analysis/UnitTesting/{ => TestRunner}/TestResultTask.cs (100%) rename src/AddIns/Analysis/UnitTesting/{ => TestRunner}/TestResultsMonitor.cs (98%) rename src/AddIns/Analysis/UnitTesting/{ => TestRunner}/TestResultsReader.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Service => TestRunner}/TestRunnerBase.cs (92%) rename src/AddIns/Analysis/UnitTesting/{Nodes => TreeView}/ClassUnitTestNode.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Interfaces => TreeView}/ITestTreeView.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Nodes => TreeView}/MemberUnitTestNode.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Nodes => TreeView}/NamespaceUnitTestNode.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Nodes => TreeView}/ProjectUnitTestNode.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Nodes => TreeView}/RootUnitTestNode.cs (100%) rename src/AddIns/Analysis/UnitTesting/{ => TreeView}/TestTreeView.cs (100%) rename src/AddIns/Analysis/UnitTesting/{Nodes => TreeView}/UnitTestBaseNode.cs (100%) diff --git a/src/AddIns/Analysis/UnitTesting/Interfaces/IRunTestCommandContext.cs b/src/AddIns/Analysis/UnitTesting/Commands/IRunTestCommandContext.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Interfaces/IRunTestCommandContext.cs rename to src/AddIns/Analysis/UnitTesting/Commands/IRunTestCommandContext.cs diff --git a/src/AddIns/Analysis/UnitTesting/MultipleProjectBuildable.cs b/src/AddIns/Analysis/UnitTesting/Commands/MultipleProjectBuildable.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/MultipleProjectBuildable.cs rename to src/AddIns/Analysis/UnitTesting/Commands/MultipleProjectBuildable.cs diff --git a/src/AddIns/Analysis/UnitTesting/RunTestCommandContext.cs b/src/AddIns/Analysis/UnitTesting/Commands/RunTestCommandContext.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/RunTestCommandContext.cs rename to src/AddIns/Analysis/UnitTesting/Commands/RunTestCommandContext.cs diff --git a/src/AddIns/Analysis/UnitTesting/Service/RunningTestsCondition.cs b/src/AddIns/Analysis/UnitTesting/Commands/RunningTestsCondition.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/RunningTestsCondition.cs rename to src/AddIns/Analysis/UnitTesting/Commands/RunningTestsCondition.cs diff --git a/src/AddIns/Analysis/UnitTesting/Service/TestableCondition.cs b/src/AddIns/Analysis/UnitTesting/Commands/TestableCondition.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/TestableCondition.cs rename to src/AddIns/Analysis/UnitTesting/Commands/TestableCondition.cs diff --git a/src/AddIns/Analysis/UnitTesting/Implementation/UnitTestBuildOptions.cs b/src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestBuildOptions.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Implementation/UnitTestBuildOptions.cs rename to src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestBuildOptions.cs diff --git a/src/AddIns/Analysis/UnitTesting/Implementation/UnitTestBuildProjectFactory.cs b/src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestBuildProjectFactory.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Implementation/UnitTestBuildProjectFactory.cs rename to src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestBuildProjectFactory.cs diff --git a/src/AddIns/Analysis/UnitTesting/Implementation/UnitTestDebuggerService.cs b/src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestDebuggerService.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Implementation/UnitTestDebuggerService.cs rename to src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestDebuggerService.cs diff --git a/src/AddIns/Analysis/UnitTesting/Implementation/UnitTestFileService.cs b/src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestFileService.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Implementation/UnitTestFileService.cs rename to src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestFileService.cs diff --git a/src/AddIns/Analysis/UnitTesting/UnitTestProcessRunner.cs b/src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestProcessRunner.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/UnitTestProcessRunner.cs rename to src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestProcessRunner.cs diff --git a/src/AddIns/Analysis/UnitTesting/Implementation/UnitTestSaveAllFilesCommand.cs b/src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestSaveAllFilesCommand.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Implementation/UnitTestSaveAllFilesCommand.cs rename to src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestSaveAllFilesCommand.cs diff --git a/src/AddIns/Analysis/UnitTesting/Implementation/UnitTestTaskService.cs b/src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestTaskService.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Implementation/UnitTestTaskService.cs rename to src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestTaskService.cs diff --git a/src/AddIns/Analysis/UnitTesting/Implementation/UnitTestWorkbench.cs b/src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestWorkbench.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Implementation/UnitTestWorkbench.cs rename to src/AddIns/Analysis/UnitTesting/Interfaces/UnitTestWorkbench.cs diff --git a/src/AddIns/Analysis/UnitTesting/Service/TestResult.cs b/src/AddIns/Analysis/UnitTesting/Model/TestResult.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/TestResult.cs rename to src/AddIns/Analysis/UnitTesting/Model/TestResult.cs diff --git a/src/AddIns/Analysis/UnitTesting/UnitTestingOptions.cs b/src/AddIns/Analysis/UnitTesting/Options/UnitTestingOptions.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/UnitTestingOptions.cs rename to src/AddIns/Analysis/UnitTesting/Options/UnitTestingOptions.cs diff --git a/src/AddIns/Analysis/UnitTesting/Gui/UnitTestingOptionsPanel.xaml b/src/AddIns/Analysis/UnitTesting/Options/UnitTestingOptionsPanel.xaml similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Gui/UnitTestingOptionsPanel.xaml rename to src/AddIns/Analysis/UnitTesting/Options/UnitTestingOptionsPanel.xaml diff --git a/src/AddIns/Analysis/UnitTesting/Gui/UnitTestingOptionsPanel.xaml.cs b/src/AddIns/Analysis/UnitTesting/Options/UnitTestingOptionsPanel.xaml.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Gui/UnitTestingOptionsPanel.xaml.cs rename to src/AddIns/Analysis/UnitTesting/Options/UnitTestingOptionsPanel.xaml.cs diff --git a/src/AddIns/Analysis/UnitTesting/Gui/EmptyUnitTestsPad.cs b/src/AddIns/Analysis/UnitTesting/Pad/EmptyUnitTestsPad.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Gui/EmptyUnitTestsPad.cs rename to src/AddIns/Analysis/UnitTesting/Pad/EmptyUnitTestsPad.cs diff --git a/src/AddIns/Analysis/UnitTesting/Interfaces/IUnitTestsPad.cs b/src/AddIns/Analysis/UnitTesting/Pad/IUnitTestsPad.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Interfaces/IUnitTestsPad.cs rename to src/AddIns/Analysis/UnitTesting/Pad/IUnitTestsPad.cs diff --git a/src/AddIns/Analysis/UnitTesting/Gui/UnitTestsPad.cs b/src/AddIns/Analysis/UnitTesting/Pad/UnitTestsPad.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Gui/UnitTestsPad.cs rename to src/AddIns/Analysis/UnitTesting/Pad/UnitTestsPad.cs diff --git a/src/AddIns/Analysis/UnitTesting/RemovedClasses.cs b/src/AddIns/Analysis/UnitTesting/RemovedClasses.cs deleted file mode 100644 index 36ab54cc80..0000000000 --- a/src/AddIns/Analysis/UnitTesting/RemovedClasses.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) -// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) - -using System; -using System.Collections.Generic; - -namespace ICSharpCode.UnitTesting -{ - /// - /// Used to determine which classes have been removed by the user in the project. - /// - public class RemovedClasses - { - Dictionary classDictionary = new Dictionary(); - - public RemovedClasses() - { - } - - public void Add(IList classes) - { - foreach (IClass c in classes) { - classDictionary[c.DotNetName] = c; - foreach (IClass innerClass in c.InnerClasses) { - classDictionary[innerClass.DotNetName] = innerClass; - } - } - } - - /// - /// - /// - /// - public void Remove(IClass c) - { - classDictionary.Remove(c.DotNetName); - foreach (IClass innerClass in c.InnerClasses) { - classDictionary.Remove(innerClass.DotNetName); - } - } - - public IList GetMissingClasses() - { - List missingClasses = new List(); - foreach (IClass c in classDictionary.Values) { - missingClasses.Add(c); - } - return missingClasses; - } - } -} diff --git a/src/AddIns/Analysis/UnitTesting/Interfaces/IRegisteredTestFrameworks.cs b/src/AddIns/Analysis/UnitTesting/TestFramework/IRegisteredTestFrameworks.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Interfaces/IRegisteredTestFrameworks.cs rename to src/AddIns/Analysis/UnitTesting/TestFramework/IRegisteredTestFrameworks.cs diff --git a/src/AddIns/Analysis/UnitTesting/Interfaces/ITestFramework.cs b/src/AddIns/Analysis/UnitTesting/TestFramework/ITestFramework.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Interfaces/ITestFramework.cs rename to src/AddIns/Analysis/UnitTesting/TestFramework/ITestFramework.cs diff --git a/src/AddIns/Analysis/UnitTesting/Interfaces/ITestFrameworkFactory.cs b/src/AddIns/Analysis/UnitTesting/TestFramework/ITestFrameworkFactory.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Interfaces/ITestFrameworkFactory.cs rename to src/AddIns/Analysis/UnitTesting/TestFramework/ITestFrameworkFactory.cs diff --git a/src/AddIns/Analysis/UnitTesting/Interfaces/ITestResultsMonitor.cs b/src/AddIns/Analysis/UnitTesting/TestFramework/ITestResultsMonitor.cs similarity index 88% rename from src/AddIns/Analysis/UnitTesting/Interfaces/ITestResultsMonitor.cs rename to src/AddIns/Analysis/UnitTesting/TestFramework/ITestResultsMonitor.cs index 5fb7bd5bda..6a67c16e74 100644 --- a/src/AddIns/Analysis/UnitTesting/Interfaces/ITestResultsMonitor.cs +++ b/src/AddIns/Analysis/UnitTesting/TestFramework/ITestResultsMonitor.cs @@ -7,7 +7,7 @@ namespace ICSharpCode.UnitTesting { public interface ITestResultsMonitor : IDisposable { - event TestFinishedEventHandler TestFinished; + event EventHandler TestFinished; string FileName { get; set; } diff --git a/src/AddIns/Analysis/UnitTesting/Service/RegisteredTestFrameworks.cs b/src/AddIns/Analysis/UnitTesting/TestFramework/RegisteredTestFrameworks.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/RegisteredTestFrameworks.cs rename to src/AddIns/Analysis/UnitTesting/TestFramework/RegisteredTestFrameworks.cs diff --git a/src/AddIns/Analysis/UnitTesting/Service/TestFrameworkDescriptor.cs b/src/AddIns/Analysis/UnitTesting/TestFramework/TestFrameworkDescriptor.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/TestFrameworkDescriptor.cs rename to src/AddIns/Analysis/UnitTesting/TestFramework/TestFrameworkDescriptor.cs diff --git a/src/AddIns/Analysis/UnitTesting/Service/TestFrameworkDoozer.cs b/src/AddIns/Analysis/UnitTesting/TestFramework/TestFrameworkDoozer.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/TestFrameworkDoozer.cs rename to src/AddIns/Analysis/UnitTesting/TestFramework/TestFrameworkDoozer.cs diff --git a/src/AddIns/Analysis/UnitTesting/Service/TestFrameworkFactory.cs b/src/AddIns/Analysis/UnitTesting/TestFramework/TestFrameworkFactory.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/TestFrameworkFactory.cs rename to src/AddIns/Analysis/UnitTesting/TestFramework/TestFrameworkFactory.cs diff --git a/src/AddIns/Analysis/UnitTesting/Service/TestService.cs b/src/AddIns/Analysis/UnitTesting/TestFramework/TestService.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/TestService.cs rename to src/AddIns/Analysis/UnitTesting/TestFramework/TestService.cs diff --git a/src/AddIns/Analysis/UnitTesting/Interfaces/ITestRunner.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/ITestRunner.cs similarity index 78% rename from src/AddIns/Analysis/UnitTesting/Interfaces/ITestRunner.cs rename to src/AddIns/Analysis/UnitTesting/TestRunner/ITestRunner.cs index 53e51e8b27..f05df18e56 100644 --- a/src/AddIns/Analysis/UnitTesting/Interfaces/ITestRunner.cs +++ b/src/AddIns/Analysis/UnitTesting/TestRunner/ITestRunner.cs @@ -8,9 +8,9 @@ namespace ICSharpCode.UnitTesting { public interface ITestRunner : IDisposable { - event TestFinishedEventHandler TestFinished; + event EventHandler TestFinished; event EventHandler AllTestsFinished; - event MessageReceivedEventHandler MessageReceived; + event EventHandler MessageReceived; void Start(SelectedTests selectedTests); void Stop(); } diff --git a/src/AddIns/Analysis/UnitTesting/Service/MessageReceivedEventArgs.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/MessageReceivedEventArgs.cs similarity index 83% rename from src/AddIns/Analysis/UnitTesting/Service/MessageReceivedEventArgs.cs rename to src/AddIns/Analysis/UnitTesting/TestRunner/MessageReceivedEventArgs.cs index da437a1410..15cfe8c1fd 100644 --- a/src/AddIns/Analysis/UnitTesting/Service/MessageReceivedEventArgs.cs +++ b/src/AddIns/Analysis/UnitTesting/TestRunner/MessageReceivedEventArgs.cs @@ -5,8 +5,6 @@ using System; namespace ICSharpCode.UnitTesting { - public delegate void MessageReceivedEventHandler(object sender, MessageReceivedEventArgs e); - public class MessageReceivedEventArgs : EventArgs { string message; diff --git a/src/AddIns/Analysis/UnitTesting/Service/SelectedTests.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/SelectedTests.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/SelectedTests.cs rename to src/AddIns/Analysis/UnitTesting/TestRunner/SelectedTests.cs diff --git a/src/AddIns/Analysis/UnitTesting/Service/TestDebuggerBase.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/TestDebuggerBase.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/TestDebuggerBase.cs rename to src/AddIns/Analysis/UnitTesting/TestRunner/TestDebuggerBase.cs diff --git a/src/AddIns/Analysis/UnitTesting/Service/TestFinishedEventArgs.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/TestFinishedEventArgs.cs similarity index 83% rename from src/AddIns/Analysis/UnitTesting/Service/TestFinishedEventArgs.cs rename to src/AddIns/Analysis/UnitTesting/TestRunner/TestFinishedEventArgs.cs index 15f16b6dc6..9ee6b61398 100644 --- a/src/AddIns/Analysis/UnitTesting/Service/TestFinishedEventArgs.cs +++ b/src/AddIns/Analysis/UnitTesting/TestRunner/TestFinishedEventArgs.cs @@ -5,8 +5,6 @@ using System; namespace ICSharpCode.UnitTesting { - public delegate void TestFinishedEventHandler(object source, TestFinishedEventArgs e); - public class TestFinishedEventArgs : EventArgs { TestResult result; diff --git a/src/AddIns/Analysis/UnitTesting/Service/TestProcessRunnerBase.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/TestProcessRunnerBase.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/TestProcessRunnerBase.cs rename to src/AddIns/Analysis/UnitTesting/TestRunner/TestProcessRunnerBase.cs diff --git a/src/AddIns/Analysis/UnitTesting/Service/TestProcessRunnerBaseContext.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/TestProcessRunnerBaseContext.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Service/TestProcessRunnerBaseContext.cs rename to src/AddIns/Analysis/UnitTesting/TestRunner/TestProcessRunnerBaseContext.cs diff --git a/src/AddIns/Analysis/UnitTesting/TestResultTask.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/TestResultTask.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/TestResultTask.cs rename to src/AddIns/Analysis/UnitTesting/TestRunner/TestResultTask.cs diff --git a/src/AddIns/Analysis/UnitTesting/TestResultsMonitor.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/TestResultsMonitor.cs similarity index 98% rename from src/AddIns/Analysis/UnitTesting/TestResultsMonitor.cs rename to src/AddIns/Analysis/UnitTesting/TestRunner/TestResultsMonitor.cs index 255b73db18..297dc87fb5 100644 --- a/src/AddIns/Analysis/UnitTesting/TestResultsMonitor.cs +++ b/src/AddIns/Analysis/UnitTesting/TestRunner/TestResultsMonitor.cs @@ -26,7 +26,7 @@ namespace ICSharpCode.UnitTesting /// /// Raised when a single test has been completed. /// - public event TestFinishedEventHandler TestFinished; + public event EventHandler TestFinished; public TestResultsMonitor(string fileName) { diff --git a/src/AddIns/Analysis/UnitTesting/TestResultsReader.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/TestResultsReader.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/TestResultsReader.cs rename to src/AddIns/Analysis/UnitTesting/TestRunner/TestResultsReader.cs diff --git a/src/AddIns/Analysis/UnitTesting/Service/TestRunnerBase.cs b/src/AddIns/Analysis/UnitTesting/TestRunner/TestRunnerBase.cs similarity index 92% rename from src/AddIns/Analysis/UnitTesting/Service/TestRunnerBase.cs rename to src/AddIns/Analysis/UnitTesting/TestRunner/TestRunnerBase.cs index 5b336e8966..e3482f992d 100644 --- a/src/AddIns/Analysis/UnitTesting/Service/TestRunnerBase.cs +++ b/src/AddIns/Analysis/UnitTesting/TestRunner/TestRunnerBase.cs @@ -37,7 +37,7 @@ namespace ICSharpCode.UnitTesting } } - public event TestFinishedEventHandler TestFinished; + public event EventHandler TestFinished; protected void OnTestFinished(object source, TestFinishedEventArgs e) { @@ -52,7 +52,7 @@ namespace ICSharpCode.UnitTesting return testResult; } - public event MessageReceivedEventHandler MessageReceived; + public event EventHandler MessageReceived; protected virtual void OnMessageReceived(string message) { diff --git a/src/AddIns/Analysis/UnitTesting/Nodes/ClassUnitTestNode.cs b/src/AddIns/Analysis/UnitTesting/TreeView/ClassUnitTestNode.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Nodes/ClassUnitTestNode.cs rename to src/AddIns/Analysis/UnitTesting/TreeView/ClassUnitTestNode.cs diff --git a/src/AddIns/Analysis/UnitTesting/Interfaces/ITestTreeView.cs b/src/AddIns/Analysis/UnitTesting/TreeView/ITestTreeView.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Interfaces/ITestTreeView.cs rename to src/AddIns/Analysis/UnitTesting/TreeView/ITestTreeView.cs diff --git a/src/AddIns/Analysis/UnitTesting/Nodes/MemberUnitTestNode.cs b/src/AddIns/Analysis/UnitTesting/TreeView/MemberUnitTestNode.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Nodes/MemberUnitTestNode.cs rename to src/AddIns/Analysis/UnitTesting/TreeView/MemberUnitTestNode.cs diff --git a/src/AddIns/Analysis/UnitTesting/Nodes/NamespaceUnitTestNode.cs b/src/AddIns/Analysis/UnitTesting/TreeView/NamespaceUnitTestNode.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Nodes/NamespaceUnitTestNode.cs rename to src/AddIns/Analysis/UnitTesting/TreeView/NamespaceUnitTestNode.cs diff --git a/src/AddIns/Analysis/UnitTesting/Nodes/ProjectUnitTestNode.cs b/src/AddIns/Analysis/UnitTesting/TreeView/ProjectUnitTestNode.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Nodes/ProjectUnitTestNode.cs rename to src/AddIns/Analysis/UnitTesting/TreeView/ProjectUnitTestNode.cs diff --git a/src/AddIns/Analysis/UnitTesting/Nodes/RootUnitTestNode.cs b/src/AddIns/Analysis/UnitTesting/TreeView/RootUnitTestNode.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Nodes/RootUnitTestNode.cs rename to src/AddIns/Analysis/UnitTesting/TreeView/RootUnitTestNode.cs diff --git a/src/AddIns/Analysis/UnitTesting/TestTreeView.cs b/src/AddIns/Analysis/UnitTesting/TreeView/TestTreeView.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/TestTreeView.cs rename to src/AddIns/Analysis/UnitTesting/TreeView/TestTreeView.cs diff --git a/src/AddIns/Analysis/UnitTesting/Nodes/UnitTestBaseNode.cs b/src/AddIns/Analysis/UnitTesting/TreeView/UnitTestBaseNode.cs similarity index 100% rename from src/AddIns/Analysis/UnitTesting/Nodes/UnitTestBaseNode.cs rename to src/AddIns/Analysis/UnitTesting/TreeView/UnitTestBaseNode.cs diff --git a/src/AddIns/Analysis/UnitTesting/UnitTesting.csproj b/src/AddIns/Analysis/UnitTesting/UnitTesting.csproj index 58abc4369d..c6faf5ad78 100644 --- a/src/AddIns/Analysis/UnitTesting/UnitTesting.csproj +++ b/src/AddIns/Analysis/UnitTesting/UnitTesting.csproj @@ -67,78 +67,78 @@ + + + + + - - - UnitTestingOptionsPanel.xaml - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + UnitTestingOptionsPanel.xaml + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + Never @@ -191,16 +191,17 @@ - - + + + - - + + - +