From 7eaa0a21b51c8e75d99848de3e4e4555b8334dfe Mon Sep 17 00:00:00 2001 From: Maximilian Chaplin Date: Tue, 10 Mar 2020 08:42:44 +0100 Subject: [PATCH] Remove unused usings. (#2350) * remove unused usings. * moved brace to next line * revert using System.Runtime.Serialization; Co-authored-by: Maximilian Chaplin --- .../EventLogContainer.cs | 1 - .../Interfaces/PlatformOperationSystem.cs | 2 -- .../VanguardCollector/Interfaces/IVanguard.cs | 1 - src/Microsoft.TestPlatform.Build/ArgumentEscaper.cs | 1 - src/Microsoft.TestPlatform.Build/Properties/AssemblyInfo.cs | 1 - .../Tasks/VSTestForwardingApp.cs | 1 - src/Microsoft.TestPlatform.Build/Tasks/VSTestTask.cs | 1 - .../DesignMode/DesignModeClient.cs | 1 - .../Properties/AssemblyInfo.cs | 1 - .../DataCollection/TestPlatformDataCollectionSink.cs | 1 - .../ExtensionFramework/TestLoggerExtensionManager.cs | 2 -- .../ExtensionFramework/TestPluginDiscoverer.cs | 1 - .../ExtensionFramework/TestPluginManager.cs | 1 - .../ExtensionFramework/VSExtensionManager.cs | 1 - .../Interfaces/Engine/ITestCaseEventsHandler.cs | 1 - .../Interfaces/Engine/TesthostProtocol/IExecutionManager.cs | 1 - .../Interfaces/ITestExtensionCapabilities.cs | 2 -- .../Interfaces/ITestLoggerCapabilities.cs | 2 -- .../Properties/AssemblyInfo.cs | 1 - .../Utilities/RunSettingsProviderExtensions.cs | 2 -- .../DataCollectionRequestHandler.cs | 1 - .../DataCollectionRequestSender.cs | 1 - .../EventHandlers/TestInitializeEventsHandler.cs | 4 ---- .../EventHandlers/TestRunEventsHandler.cs | 2 -- .../JsonDataSerializer.cs | 1 - .../Messages/DiscoveryCompletePayload.cs | 1 - .../ObjectModel/TestRunCriteriaWithSources.cs | 1 - .../ObjectModel/TestRunCriteriaWithTests.cs | 1 - .../Properties/AssemblyInfo.cs | 1 - .../SocketClient.cs | 1 - .../SocketServer.cs | 1 - .../TestRequestSender.cs | 1 - .../Helpers/DotnetHostHelper.cs | 1 - .../Helpers/Interfaces/IFileHelper.cs | 1 - .../Output/OutputExtensions.cs | 1 - .../Properties/AssemblyInfo.cs | 1 - src/Microsoft.TestPlatform.CoreUtilities/Utilities/Job.cs | 1 - .../Utilities/JobQueue.cs | 1 - .../Utilities/MulticastDelegateUtilities.cs | 1 - .../Utilities/StringExtensions.cs | 3 --- src/Microsoft.TestPlatform.CoreUtilities/ValidateArg.cs | 2 -- .../Client/ProxyDiscoveryManager.cs | 2 -- .../Client/ProxyExecutionManager.cs | 1 - .../DataCollection/Interfaces/IInProcDataCollector.cs | 4 ---- .../Interfaces/IProxyDataCollectionManager.cs | 1 - .../Discovery/DiscoveryResultCache.cs | 1 - .../Execution/BaseRunTests.cs | 2 -- .../Execution/RunTestsWithSources.cs | 1 - .../Properties/AssemblyInfo.cs | 1 - .../BlameTestObject.cs | 2 -- .../ObjectModel/TestId.cs | 1 - .../ObjectModel/TestLink.cs | 3 +-- .../ObjectModel/TestResult.cs | 1 - .../Properties/AssemblyInfo.cs | 1 - .../Utility/Collection.cs | 2 -- .../Utility/Converter.cs | 1 - .../Adapter/TestPlatformFormatException.cs | 4 ---- .../Client/Events/DiscoveryStartEventArgs.cs | 3 --- .../Client/Events/TestRunChangedEventArgs.cs | 3 --- .../Client/Events/TestRunCompleteEventArgs.cs | 2 -- .../Client/Events/TestRunStartEventArgs.cs | 3 --- .../Client/Interfaces/ITestRunStatistics.cs | 1 - .../Client/Payloads/TestRunRequestPayload.cs | 1 - .../Client/TestRunStatistics.cs | 2 -- .../DataCollector/DataCollectionEnvironmentContext.cs | 2 ++ .../DataCollector/Events/TestHostLaunchedEvent.cs | 2 -- .../InProcDataCollector/InProcDataCollector.cs | 1 - .../Host/ITestRunTimeProvider.cs | 1 - .../Logger/ITestLogger.cs | 2 -- .../Logging/Interfaces/IMessageLogger.cs | 2 -- .../Logging/TestMessageLevel.cs | 2 -- .../Navigation/ISymbolReader.cs | 3 --- .../Navigation/NativeMethods.cs | 2 +- .../RunSettings/SettingsException.cs | 3 +++ src/Microsoft.TestPlatform.ObjectModel/TestCase.cs | 3 --- src/Microsoft.TestPlatform.ObjectModel/TestOutcome.cs | 2 -- .../TestProcessStartInfo.cs | 2 -- src/Microsoft.TestPlatform.ObjectModel/Trait.cs | 2 ++ .../Utilities/SuspendCodeCoverage.cs | 3 --- .../Interfaces/System/PlatformApartmentState.cs | 2 -- .../Interfaces/System/PlatformArchitecture.cs | 2 -- .../Interfaces/System/PlatformOperationSystem.cs | 2 -- .../netcore/Runtime/PlatformAssemblyLoadContext.cs | 2 -- .../netstandard/Tracing/PlatformEqtTrace.cs | 1 - .../CommandLineUtilities.cs | 1 - .../InferRunSettingsHelper.cs | 1 - .../MSTestSettingsUtilities.cs | 1 - .../ParallelRunSettingsUtilities.cs | 4 ---- .../Properties/AssemblyInfo.cs | 1 - src/Microsoft.TestPlatform.Utilities/XmlUtilities.cs | 2 ++ .../ConsoleParameters.cs | 2 ++ src/SettingsMigrator/PathResolver.cs | 1 - src/SettingsMigrator/Program.cs | 1 - src/SettingsMigrator/Properties/AssemblyInfo.cs | 1 - src/datacollector/Properties/AssemblyInfo.cs | 1 - src/testhost.x86/IEngineInvoker.cs | 3 --- src/testhost.x86/Program.cs | 1 - src/testhost.x86/Properties/AssemblyInfo.cs | 1 - src/testhost/Properties/AssemblyInfo.cs | 1 - src/vstest.console/CommandLine/CommandLineOptions.cs | 2 -- src/vstest.console/CommandLine/InferHelper.cs | 5 ----- .../Processors/DisableAutoFakesArgumentProcessor.cs | 1 - .../Processors/EnableLoggerArgumentProcessor.cs | 5 ----- .../Processors/ListFullyQualifiedTestsArgumentProcessor.cs | 1 - src/vstest.console/Processors/ListTestsArgumentProcessor.cs | 1 - .../Processors/ListTestsTargetPathArgumentProcessor.cs | 1 - .../Processors/ParentProcessIdArgumentProcessor.cs | 2 -- src/vstest.console/Processors/PortArgumentProcessor.cs | 2 -- .../Processors/ResponseFileArgumentProcessor.cs | 3 --- .../Processors/RunSettingsArgumentProcessor.cs | 2 -- .../EventLogSessionContextTests.cs | 2 -- .../EventLogXmlWriterTests.cs | 3 --- .../TraceDataCollector.UnitTests/Properties/AssemblyInfo.cs | 1 - .../AcceptanceTestBase.cs | 2 -- .../AppDomainTests.cs | 1 - test/Microsoft.TestPlatform.AcceptanceTests/CUITTest.cs | 4 ---- .../DisableAppdomainTests.cs | 1 - .../ArgumentEscaperTests.cs | 1 - .../DesignMode/DesignModeClientTests.cs | 1 - .../DesignMode/DesignModeTestHostLauncherFactoryTests.cs | 1 - .../DesignMode/DesignModeTestHostLauncherTests.cs | 3 --- .../Properties/AssemblyInfo.cs | 1 - .../DataCollectorExtensionManagerTests.cs | 1 - .../ExtensionFramework/TestLoggerExtensionManagerTests.cs | 1 - .../ExtensionFramework/TestPluginDiscovererTests.cs | 2 -- .../ExtensionFramework/TestPluginManagerTests.cs | 4 ---- .../Hosting/TestHostExtensionManagerTests.cs | 2 -- .../RunSettingsTests.cs | 2 -- .../SocketCommunicationManagerTests.cs | 1 - .../SocketTestsBase.cs | 4 ---- .../DataCollectionRequestHandlerTests.cs | 1 - .../DataCollectionRequestSenderTests.cs | 1 - .../JsonDataSerializerTests.cs | 2 -- .../LengthPrefixCommunicationChannelTests.cs | 1 - .../Properties/AssemblyInfo.cs | 1 - .../TestRequestSenderTests.cs | 2 -- .../Helpers/EnvironmentHelperTests.cs | 1 - .../Properties/AssemblyInfo.cs | 1 - .../Tracing/EqtTraceTests.cs | 3 ++- .../DataCollection/InProcDataCollectionSinkTests.cs | 4 ---- .../DataCollection/ProxyDataCollectionManagerTests.cs | 2 -- .../Execution/TestRunCacheTests.cs | 2 -- .../TestLoggerManagerTests.cs | 2 -- .../TestableImplementations/TestableTestEngine.cs | 1 - .../BlameCollectorTests.cs | 1 - .../BlameLoggerTests.cs | 1 - .../ProcessDumpUtilityTests.cs | 2 -- .../XmlReaderWriterTests.cs | 1 - .../Program.cs | 6 +----- .../Properties/AssemblyInfo.cs | 1 - .../Utility/ConverterTests.cs | 1 - .../Properties/AssemblyInfo.cs | 1 - .../CustomStringArrayConverterTests.cs | 3 --- .../FrameworkTests.cs | 2 -- .../Properties/AssemblyInfo.cs | 1 - .../Utilities/XmlRunSettingsUtilitiesTests.cs | 1 - .../Properties/AssemblyInfo.cs | 1 - .../TranslationLayer/ExecutionPerfTests.cs | 4 +--- .../NumberOfProcessLaunchedUtility.cs | 2 -- .../PerfInstrumentation/PerformanceTestBase.cs | 3 --- .../Properties/AssemblyInfo.cs | 1 - .../InferRunSettingsHelperTests.cs | 4 ---- .../MSTestSettingsUtilitiesTests.cs | 2 -- .../Properties/AssemblyInfo.cs | 1 - test/SettingsMigrator.UnitTests/MigratorTests.cs | 1 - test/SettingsMigrator.UnitTests/PathResolverTests.cs | 2 -- test/SettingsMigrator.UnitTests/ProgramTests.cs | 3 --- test/TranslationLayer.UnitTests/ConsoleParametersTests.cs | 1 - test/TranslationLayer.UnitTests/Properties/AssemblyInfo.cs | 1 - .../DataCollectionAttachmentManagerTests.cs | 1 - .../DataCollectionEnvironmentVariableTests.cs | 1 - test/datacollector.UnitTests/DataCollectionManagerTests.cs | 1 - test/datacollector.UnitTests/DataCollectorConfigTests.cs | 2 -- test/datacollector.UnitTests/DummyDataCollectors.cs | 3 --- test/datacollector.UnitTests/Properties/AssemblyInfo.cs | 1 - .../TestPlatformDataCollectionEventsTests.cs | 1 - .../TestPlatformDataCollectionSinkTests.cs | 1 - test/testhost.UnitTests/DefaultEngineInvokerTests.cs | 1 - test/testhost.UnitTests/Properties/AssemblyInfo.cs | 1 - test/testhost.UnitTests/UnitTestClientTests.cs | 1 - .../CommandLine/CommandLineOptionsTests.cs | 1 - .../CommandLine/InferHelperTests.cs | 1 - .../CommandLine/TestRunResultAggregatorTests.cs | 4 ---- .../Processors/CLIRunSettingsArgumentProcessorTests.cs | 2 -- .../Processors/PortArgumentProcessorTests.cs | 1 - test/vstest.console.UnitTests/Properties/AssemblyInfo.cs | 1 - 186 files changed, 17 insertions(+), 300 deletions(-) diff --git a/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/EventLogContainer.cs b/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/EventLogContainer.cs index 47787fc23d..f8673dd455 100644 --- a/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/EventLogContainer.cs +++ b/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/EventLogContainer.cs @@ -10,7 +10,6 @@ namespace Microsoft.TestPlatform.Extensions.EventLogCollector using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection; - using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; using Resource = Microsoft.TestPlatform.Extensions.EventLogCollector.Resources.Resources; diff --git a/src/DataCollectors/TraceDataCollector/Interfaces/PlatformOperationSystem.cs b/src/DataCollectors/TraceDataCollector/Interfaces/PlatformOperationSystem.cs index 97da3d0fa2..6888d8a4fc 100644 --- a/src/DataCollectors/TraceDataCollector/Interfaces/PlatformOperationSystem.cs +++ b/src/DataCollectors/TraceDataCollector/Interfaces/PlatformOperationSystem.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TraceCollector.Interfaces { - using System; - /// /// Available operating systems. /// diff --git a/src/DataCollectors/TraceDataCollector/VanguardCollector/Interfaces/IVanguard.cs b/src/DataCollectors/TraceDataCollector/VanguardCollector/Interfaces/IVanguard.cs index da0de71fea..3cf682e22b 100644 --- a/src/DataCollectors/TraceDataCollector/VanguardCollector/Interfaces/IVanguard.cs +++ b/src/DataCollectors/TraceDataCollector/VanguardCollector/Interfaces/IVanguard.cs @@ -4,7 +4,6 @@ namespace Microsoft.VisualStudio.Coverage.Interfaces { using System; - using System.Xml; using TestPlatform.ObjectModel.DataCollection; using TraceCollector; diff --git a/src/Microsoft.TestPlatform.Build/ArgumentEscaper.cs b/src/Microsoft.TestPlatform.Build/ArgumentEscaper.cs index a203b25bb0..46f64427e6 100644 --- a/src/Microsoft.TestPlatform.Build/ArgumentEscaper.cs +++ b/src/Microsoft.TestPlatform.Build/ArgumentEscaper.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Text; namespace Microsoft.TestPlatform.Build.Utils diff --git a/src/Microsoft.TestPlatform.Build/Properties/AssemblyInfo.cs b/src/Microsoft.TestPlatform.Build/Properties/AssemblyInfo.cs index a1eeb3a08c..77e283a24a 100644 --- a/src/Microsoft.TestPlatform.Build/Properties/AssemblyInfo.cs +++ b/src/Microsoft.TestPlatform.Build/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/Microsoft.TestPlatform.Build/Tasks/VSTestForwardingApp.cs b/src/Microsoft.TestPlatform.Build/Tasks/VSTestForwardingApp.cs index 7ab3596282..0131b222d5 100644 --- a/src/Microsoft.TestPlatform.Build/Tasks/VSTestForwardingApp.cs +++ b/src/Microsoft.TestPlatform.Build/Tasks/VSTestForwardingApp.cs @@ -7,7 +7,6 @@ namespace Microsoft.TestPlatform.Build.Tasks using System; using System.Collections.Generic; using System.Diagnostics; - using System.IO; using Trace; public class VSTestForwardingApp diff --git a/src/Microsoft.TestPlatform.Build/Tasks/VSTestTask.cs b/src/Microsoft.TestPlatform.Build/Tasks/VSTestTask.cs index 2a07c3af5a..047b687ce4 100644 --- a/src/Microsoft.TestPlatform.Build/Tasks/VSTestTask.cs +++ b/src/Microsoft.TestPlatform.Build/Tasks/VSTestTask.cs @@ -5,7 +5,6 @@ namespace Microsoft.TestPlatform.Build.Tasks { using System; using System.Collections.Generic; - using System.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microsoft.TestPlatform.Build.Resources; diff --git a/src/Microsoft.TestPlatform.Client/DesignMode/DesignModeClient.cs b/src/Microsoft.TestPlatform.Client/DesignMode/DesignModeClient.cs index 6e3c8b16f3..55986dddec 100644 --- a/src/Microsoft.TestPlatform.Client/DesignMode/DesignModeClient.cs +++ b/src/Microsoft.TestPlatform.Client/DesignMode/DesignModeClient.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Client.DesignMode { using System; using System.Collections.Generic; - using System.Data; using System.Globalization; using System.Net; using System.Threading; diff --git a/src/Microsoft.TestPlatform.Client/Properties/AssemblyInfo.cs b/src/Microsoft.TestPlatform.Client/Properties/AssemblyInfo.cs index 5724397f72..7b65ce42ca 100644 --- a/src/Microsoft.TestPlatform.Client/Properties/AssemblyInfo.cs +++ b/src/Microsoft.TestPlatform.Client/Properties/AssemblyInfo.cs @@ -3,7 +3,6 @@ using System.Reflection; using System.Resources; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/Microsoft.TestPlatform.Common/DataCollection/TestPlatformDataCollectionSink.cs b/src/Microsoft.TestPlatform.Common/DataCollection/TestPlatformDataCollectionSink.cs index 0caf6ec33c..c87beeb754 100644 --- a/src/Microsoft.TestPlatform.Common/DataCollection/TestPlatformDataCollectionSink.cs +++ b/src/Microsoft.TestPlatform.Common/DataCollection/TestPlatformDataCollectionSink.cs @@ -4,7 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.DataCollector { using System.ComponentModel; - using System.Diagnostics; using Microsoft.VisualStudio.TestPlatform.Common.DataCollector.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestLoggerExtensionManager.cs b/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestLoggerExtensionManager.cs index f49161fcbf..56a4227332 100644 --- a/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestLoggerExtensionManager.cs +++ b/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestLoggerExtensionManager.cs @@ -4,8 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework { using System.Collections.Generic; - using Microsoft.VisualStudio.TestPlatform.Common; - using Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework; using Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework.Utilities; using Microsoft.VisualStudio.TestPlatform.Common.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; diff --git a/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestPluginDiscoverer.cs b/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestPluginDiscoverer.cs index 0a34fbfc57..aa80c44cc3 100644 --- a/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestPluginDiscoverer.cs +++ b/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestPluginDiscoverer.cs @@ -11,7 +11,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework using System.IO; using System.Linq; using System.Reflection; - using System.Xml; using Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework.Utilities; using Microsoft.VisualStudio.TestPlatform.Common.Logging; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestPluginManager.cs b/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestPluginManager.cs index 847a58522e..183d60dcad 100644 --- a/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestPluginManager.cs +++ b/src/Microsoft.TestPlatform.Common/ExtensionFramework/TestPluginManager.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework { using System; using System.Collections.Generic; - using System.Linq; using System.Reflection; using Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework.Utilities; diff --git a/src/Microsoft.TestPlatform.Common/ExtensionFramework/VSExtensionManager.cs b/src/Microsoft.TestPlatform.Common/ExtensionFramework/VSExtensionManager.cs index 75e3b0825f..635004ea45 100644 --- a/src/Microsoft.TestPlatform.Common/ExtensionFramework/VSExtensionManager.cs +++ b/src/Microsoft.TestPlatform.Common/ExtensionFramework/VSExtensionManager.cs @@ -6,7 +6,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework using System; using System.Collections.Generic; using System.Globalization; - using System.IO; using System.Reflection; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; diff --git a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ITestCaseEventsHandler.cs b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ITestCaseEventsHandler.cs index 178dbb2912..4cd9ef7870 100644 --- a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ITestCaseEventsHandler.cs +++ b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/ITestCaseEventsHandler.cs @@ -4,7 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine { using System.Collections.Generic; - using Microsoft.VisualStudio.TestPlatform.ObjectModel; /// /// The Test Case level events. diff --git a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/TesthostProtocol/IExecutionManager.cs b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/TesthostProtocol/IExecutionManager.cs index 1fa3dca2cc..d868f7ec86 100644 --- a/src/Microsoft.TestPlatform.Common/Interfaces/Engine/TesthostProtocol/IExecutionManager.cs +++ b/src/Microsoft.TestPlatform.Common/Interfaces/Engine/TesthostProtocol/IExecutionManager.cs @@ -3,7 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine.TesthostProtocol { - using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; diff --git a/src/Microsoft.TestPlatform.Common/Interfaces/ITestExtensionCapabilities.cs b/src/Microsoft.TestPlatform.Common/Interfaces/ITestExtensionCapabilities.cs index 08edc66113..8f23e8e126 100644 --- a/src/Microsoft.TestPlatform.Common/Interfaces/ITestExtensionCapabilities.cs +++ b/src/Microsoft.TestPlatform.Common/Interfaces/ITestExtensionCapabilities.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.Interfaces { - using System.Diagnostics.CodeAnalysis; - /// /// Basic metadata for extensions which are identified by a URI. /// diff --git a/src/Microsoft.TestPlatform.Common/Interfaces/ITestLoggerCapabilities.cs b/src/Microsoft.TestPlatform.Common/Interfaces/ITestLoggerCapabilities.cs index 2d0ada2260..16d30d5750 100644 --- a/src/Microsoft.TestPlatform.Common/Interfaces/ITestLoggerCapabilities.cs +++ b/src/Microsoft.TestPlatform.Common/Interfaces/ITestLoggerCapabilities.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.Interfaces { - using System.Diagnostics.CodeAnalysis; - /// /// Metadata that is available from Test Loggers. /// diff --git a/src/Microsoft.TestPlatform.Common/Properties/AssemblyInfo.cs b/src/Microsoft.TestPlatform.Common/Properties/AssemblyInfo.cs index 0920ad0844..d506352c25 100644 --- a/src/Microsoft.TestPlatform.Common/Properties/AssemblyInfo.cs +++ b/src/Microsoft.TestPlatform.Common/Properties/AssemblyInfo.cs @@ -3,7 +3,6 @@ using System.Reflection; using System.Resources; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/Microsoft.TestPlatform.Common/Utilities/RunSettingsProviderExtensions.cs b/src/Microsoft.TestPlatform.Common/Utilities/RunSettingsProviderExtensions.cs index 7759655843..7af12b0f87 100644 --- a/src/Microsoft.TestPlatform.Common/Utilities/RunSettingsProviderExtensions.cs +++ b/src/Microsoft.TestPlatform.Common/Utilities/RunSettingsProviderExtensions.cs @@ -11,8 +11,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.Utilities using Microsoft.VisualStudio.TestPlatform.Common.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities; - using Microsoft.VisualStudio.TestPlatform.Common; - using System.Collections.Generic; using System.Text.RegularExpressions; /// diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/DataCollectionRequestHandler.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/DataCollectionRequestHandler.cs index 650c5981e4..ee319c2744 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/DataCollectionRequestHandler.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/DataCollectionRequestHandler.cs @@ -17,7 +17,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.DataCollect using Microsoft.VisualStudio.TestPlatform.Common.DataCollector.Interfaces; using Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework; using Microsoft.VisualStudio.TestPlatform.Common.Utilities; - using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.DataCollection.Interfaces; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel; diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/DataCollectionRequestSender.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/DataCollectionRequestSender.cs index 84114d8cf6..0da7ea32d2 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/DataCollectionRequestSender.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/DataCollectionRequestSender.cs @@ -9,7 +9,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.DataCollect using System.Net; using Microsoft.VisualStudio.TestPlatform.Common.DataCollection; - using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.DataCollection.Interfaces; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel; diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/EventHandlers/TestInitializeEventsHandler.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/EventHandlers/TestInitializeEventsHandler.cs index 64b7ba6194..5bbde0f4a1 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/EventHandlers/TestInitializeEventsHandler.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/EventHandlers/TestInitializeEventsHandler.cs @@ -3,13 +3,9 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.EventHandlers { - using System; - using System.Collections.Generic; - using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; - using Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; /// diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/EventHandlers/TestRunEventsHandler.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/EventHandlers/TestRunEventsHandler.cs index 25dfe2ea65..8a8e2acd32 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/EventHandlers/TestRunEventsHandler.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/EventHandlers/TestRunEventsHandler.cs @@ -3,13 +3,11 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.EventHandlers { - using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; - using Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; /// diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/JsonDataSerializer.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/JsonDataSerializer.cs index f115064239..d0aa538ebe 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/JsonDataSerializer.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/JsonDataSerializer.cs @@ -10,7 +10,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities using Newtonsoft.Json; using Newtonsoft.Json.Linq; - using Newtonsoft.Json.Serialization; /// /// JsonDataSerializes serializes and deserializes data using Json format diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/Messages/DiscoveryCompletePayload.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/Messages/DiscoveryCompletePayload.cs index 6827cfe9b1..1abacd4f4e 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/Messages/DiscoveryCompletePayload.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/Messages/DiscoveryCompletePayload.cs @@ -4,7 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel { using System.Collections.Generic; - using System.Runtime.Serialization; using Microsoft.VisualStudio.TestPlatform.ObjectModel; /// diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/ObjectModel/TestRunCriteriaWithSources.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/ObjectModel/TestRunCriteriaWithSources.cs index e6017ae73a..96cc0f8bc7 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/ObjectModel/TestRunCriteriaWithSources.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/ObjectModel/TestRunCriteriaWithSources.cs @@ -3,7 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel { - using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine.ClientProtocol; diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/ObjectModel/TestRunCriteriaWithTests.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/ObjectModel/TestRunCriteriaWithTests.cs index 443429eee2..fe5337f87b 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/ObjectModel/TestRunCriteriaWithTests.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/ObjectModel/TestRunCriteriaWithTests.cs @@ -3,7 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel { - using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/Properties/AssemblyInfo.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/Properties/AssemblyInfo.cs index ab4baa8a1d..7c1921d728 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/Properties/AssemblyInfo.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/Properties/AssemblyInfo.cs @@ -3,7 +3,6 @@ using System.Reflection; using System.Resources; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/SocketClient.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/SocketClient.cs index 180180e385..9d7dca6b98 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/SocketClient.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/SocketClient.cs @@ -11,7 +11,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities using System.Threading.Tasks; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel; - using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions; using Microsoft.VisualStudio.TestPlatform.Utilities; /// diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/SocketServer.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/SocketServer.cs index 7986e81fb7..84adaee226 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/SocketServer.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/SocketServer.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities { using System; using System.IO; - using System.Net; using System.Net.Sockets; using System.Threading; using System.Threading.Tasks; diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/TestRequestSender.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/TestRequestSender.cs index ab1ffd4827..b8f1b5ac1d 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/TestRequestSender.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/TestRequestSender.cs @@ -13,7 +13,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; - using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions; using CommonResources = Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Resources.Resources; /// diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Helpers/DotnetHostHelper.cs b/src/Microsoft.TestPlatform.CoreUtilities/Helpers/DotnetHostHelper.cs index 3d82aff821..c9109ac5f5 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/Helpers/DotnetHostHelper.cs +++ b/src/Microsoft.TestPlatform.CoreUtilities/Helpers/DotnetHostHelper.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Helpers { using System; using System.IO; - using System.Runtime.InteropServices; using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Resources; using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Helpers.Interfaces; diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Helpers/Interfaces/IFileHelper.cs b/src/Microsoft.TestPlatform.CoreUtilities/Helpers/Interfaces/IFileHelper.cs index 4c73017044..5b0f42c4e6 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/Helpers/Interfaces/IFileHelper.cs +++ b/src/Microsoft.TestPlatform.CoreUtilities/Helpers/Interfaces/IFileHelper.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces { using System; using System.Collections.Generic; - using System.Diagnostics; using System.IO; /// diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Output/OutputExtensions.cs b/src/Microsoft.TestPlatform.CoreUtilities/Output/OutputExtensions.cs index 7d9ac7423f..8cdc10de79 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/Output/OutputExtensions.cs +++ b/src/Microsoft.TestPlatform.CoreUtilities/Output/OutputExtensions.cs @@ -6,7 +6,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Utilities using System; using System.Globalization; - using Microsoft.VisualStudio.TestPlatform.CoreUtilities; using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Resources; /// diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Properties/AssemblyInfo.cs b/src/Microsoft.TestPlatform.CoreUtilities/Properties/AssemblyInfo.cs index 199546d215..2c8ad732d2 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/Properties/AssemblyInfo.cs +++ b/src/Microsoft.TestPlatform.CoreUtilities/Properties/AssemblyInfo.cs @@ -3,7 +3,6 @@ using System.Reflection; using System.Resources; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Utilities/Job.cs b/src/Microsoft.TestPlatform.CoreUtilities/Utilities/Job.cs index 51b12293ed..5340a6ff5b 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/Utilities/Job.cs +++ b/src/Microsoft.TestPlatform.CoreUtilities/Utilities/Job.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.Utilities { - using System.Diagnostics.CodeAnalysis; using System.Threading; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Utilities/JobQueue.cs b/src/Microsoft.TestPlatform.CoreUtilities/Utilities/JobQueue.cs index f60d16c99d..e743e7b648 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/Utilities/JobQueue.cs +++ b/src/Microsoft.TestPlatform.CoreUtilities/Utilities/JobQueue.cs @@ -14,7 +14,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Utilities using System.Threading.Tasks; using Microsoft.VisualStudio.TestPlatform.Common.Utilities; - using Microsoft.VisualStudio.TestPlatform.CoreUtilities; using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Resources; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Utilities/MulticastDelegateUtilities.cs b/src/Microsoft.TestPlatform.CoreUtilities/Utilities/MulticastDelegateUtilities.cs index 234f918fe4..5d12e4ae24 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/Utilities/MulticastDelegateUtilities.cs +++ b/src/Microsoft.TestPlatform.CoreUtilities/Utilities/MulticastDelegateUtilities.cs @@ -6,7 +6,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Utilities using System; using System.Reflection; - using Microsoft.VisualStudio.TestPlatform.CoreUtilities; using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Resources; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/src/Microsoft.TestPlatform.CoreUtilities/Utilities/StringExtensions.cs b/src/Microsoft.TestPlatform.CoreUtilities/Utilities/StringExtensions.cs index ffef131a7c..1e04c64a9b 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/Utilities/StringExtensions.cs +++ b/src/Microsoft.TestPlatform.CoreUtilities/Utilities/StringExtensions.cs @@ -3,9 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CoreUtilities.Extensions { - using System; - using System.Text; - public static class StringExtensions { /// diff --git a/src/Microsoft.TestPlatform.CoreUtilities/ValidateArg.cs b/src/Microsoft.TestPlatform.CoreUtilities/ValidateArg.cs index c5b641c91a..160fb478b1 100644 --- a/src/Microsoft.TestPlatform.CoreUtilities/ValidateArg.cs +++ b/src/Microsoft.TestPlatform.CoreUtilities/ValidateArg.cs @@ -10,9 +10,7 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel using System.Diagnostics; using System.Globalization; using System.Linq; - using System.Reflection; - using Microsoft.VisualStudio.TestPlatform.CoreUtilities; using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Resources; /// diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyDiscoveryManager.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyDiscoveryManager.cs index b20a8fcf4f..07158a8106 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyDiscoveryManager.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyDiscoveryManager.cs @@ -6,11 +6,9 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client using System; using System.Collections.Generic; using System.Linq; - using System.Threading; using Microsoft.VisualStudio.TestPlatform.Common; using Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework; - using Microsoft.VisualStudio.TestPlatform.Common.Telemetry; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel; diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyExecutionManager.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyExecutionManager.cs index dff1853037..1561608e68 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyExecutionManager.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyExecutionManager.cs @@ -20,7 +20,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client using Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine.ClientProtocol; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Host; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; - using Microsoft.VisualStudio.TestPlatform.Utilities; using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers; using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/Interfaces/IInProcDataCollector.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/Interfaces/IInProcDataCollector.cs index 57980ff3b4..e3e59f5982 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/Interfaces/IInProcDataCollector.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/Interfaces/IInProcDataCollector.cs @@ -5,10 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.DataCollection.Int { using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection; using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollector.InProcDataCollector; - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; internal interface IInProcDataCollector { diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/Interfaces/IProxyDataCollectionManager.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/Interfaces/IProxyDataCollectionManager.cs index 90e69bae2b..32e52ae2b8 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/Interfaces/IProxyDataCollectionManager.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/Interfaces/IProxyDataCollectionManager.cs @@ -7,7 +7,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.DataCollection.Int using System.Collections.Generic; using System.Collections.ObjectModel; - using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.DataCollection.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/Discovery/DiscoveryResultCache.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/Discovery/DiscoveryResultCache.cs index 416bfd7d24..8ab29b15f7 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/Discovery/DiscoveryResultCache.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/Discovery/DiscoveryResultCache.cs @@ -8,7 +8,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Discovery using System.Diagnostics; using Microsoft.VisualStudio.TestPlatform.ObjectModel; - using Microsoft.VisualStudio.TestPlatform.Utilities; /// /// The discovery result cache. diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/Execution/BaseRunTests.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/Execution/BaseRunTests.cs index 9499a6a6bd..ab438113dc 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/Execution/BaseRunTests.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/Execution/BaseRunTests.cs @@ -4,7 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution { using System; - using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; @@ -23,7 +22,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Tracing.Interfaces; using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Adapter; - using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.DataCollection; using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.DataCollection.Interfaces; using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Resources; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/Execution/RunTestsWithSources.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/Execution/RunTestsWithSources.cs index a1fdb02873..be0335abc8 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/Execution/RunTestsWithSources.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/Execution/RunTestsWithSources.cs @@ -15,7 +15,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Tracing; using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Adapter; using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Discovery; - using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine.ClientProtocol; diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/Properties/AssemblyInfo.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/Properties/AssemblyInfo.cs index 9c0fe0ca23..e0dbc0ff3a 100644 --- a/src/Microsoft.TestPlatform.CrossPlatEngine/Properties/AssemblyInfo.cs +++ b/src/Microsoft.TestPlatform.CrossPlatEngine/Properties/AssemblyInfo.cs @@ -3,7 +3,6 @@ using System.Reflection; using System.Resources; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/BlameTestObject.cs b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/BlameTestObject.cs index 080d03f2ea..6f185def3c 100644 --- a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/BlameTestObject.cs +++ b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/BlameTestObject.cs @@ -4,9 +4,7 @@ namespace Microsoft.TestPlatform.Extensions.BlameDataCollector { using System; - using System.IO; using Microsoft.VisualStudio.TestPlatform.ObjectModel; - using Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities; public class BlameTestObject { diff --git a/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestId.cs b/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestId.cs index 6bfada65f3..4b250e474d 100644 --- a/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestId.cs +++ b/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestId.cs @@ -8,7 +8,6 @@ namespace Microsoft.TestPlatform.Extensions.TrxLogger.ObjectModel using System.Globalization; using System.Xml; - using Microsoft.TestPlatform.Extensions.TrxLogger.Utility; using Microsoft.TestPlatform.Extensions.TrxLogger.XML; #region TestId diff --git a/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestLink.cs b/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestLink.cs index b770e30d20..576e43240c 100644 --- a/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestLink.cs +++ b/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestLink.cs @@ -4,7 +4,6 @@ namespace Microsoft.TestPlatform.Extensions.TrxLogger.ObjectModel { using System; - using System.Diagnostics; using System.Globalization; using Microsoft.TestPlatform.Extensions.TrxLogger.Utility; using Microsoft.TestPlatform.Extensions.TrxLogger.XML; @@ -63,7 +62,7 @@ public string Storage public override bool Equals(object other) { TestLink link = other as TestLink; - return (link == null) ? + return (link == null) ? false : this.id.Equals(link.id); } diff --git a/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestResult.cs b/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestResult.cs index a7df5928cf..031babb579 100644 --- a/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestResult.cs +++ b/src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/TestResult.cs @@ -8,7 +8,6 @@ namespace Microsoft.TestPlatform.Extensions.TrxLogger.ObjectModel using System.Collections.Generic; using System.Diagnostics; using System.Globalization; - using System.IO; using Microsoft.TestPlatform.Extensions.TrxLogger.Utility; using Microsoft.TestPlatform.Extensions.TrxLogger.XML; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/src/Microsoft.TestPlatform.Extensions.TrxLogger/Properties/AssemblyInfo.cs b/src/Microsoft.TestPlatform.Extensions.TrxLogger/Properties/AssemblyInfo.cs index 737488fed7..f2b2307987 100644 --- a/src/Microsoft.TestPlatform.Extensions.TrxLogger/Properties/AssemblyInfo.cs +++ b/src/Microsoft.TestPlatform.Extensions.TrxLogger/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/Microsoft.TestPlatform.Extensions.TrxLogger/Utility/Collection.cs b/src/Microsoft.TestPlatform.Extensions.TrxLogger/Utility/Collection.cs index 49c6d41608..28a398a156 100644 --- a/src/Microsoft.TestPlatform.Extensions.TrxLogger/Utility/Collection.cs +++ b/src/Microsoft.TestPlatform.Extensions.TrxLogger/Utility/Collection.cs @@ -3,11 +3,9 @@ namespace Microsoft.TestPlatform.Extensions.TrxLogger.Utility { - using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; using Microsoft.TestPlatform.Extensions.TrxLogger.XML; using Microsoft.TestPlatform.Extensions.TrxLogger.ObjectModel; diff --git a/src/Microsoft.TestPlatform.Extensions.TrxLogger/Utility/Converter.cs b/src/Microsoft.TestPlatform.Extensions.TrxLogger/Utility/Converter.cs index 808feec7e2..1b4eacbb5a 100644 --- a/src/Microsoft.TestPlatform.Extensions.TrxLogger/Utility/Converter.cs +++ b/src/Microsoft.TestPlatform.Extensions.TrxLogger/Utility/Converter.cs @@ -10,7 +10,6 @@ namespace Microsoft.TestPlatform.Extensions.TrxLogger.Utility using System.Globalization; using System.IO; using System.Linq; - using System.Runtime.CompilerServices; using System.Text; using Microsoft.TestPlatform.Extensions.TrxLogger.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/src/Microsoft.TestPlatform.ObjectModel/Adapter/TestPlatformFormatException.cs b/src/Microsoft.TestPlatform.ObjectModel/Adapter/TestPlatformFormatException.cs index 329ab83d21..f92930757e 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Adapter/TestPlatformFormatException.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Adapter/TestPlatformFormatException.cs @@ -5,10 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter { using System; using System.Runtime.Serialization; -#if NET451 -using System.Security.Permissions; -#endif - using Microsoft.VisualStudio.TestPlatform.ObjectModel; /// /// Exception thrown on parsing error in user provided filter expression. diff --git a/src/Microsoft.TestPlatform.ObjectModel/Client/Events/DiscoveryStartEventArgs.cs b/src/Microsoft.TestPlatform.ObjectModel/Client/Events/DiscoveryStartEventArgs.cs index 9e71c9f46f..2a84ef9258 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Client/Events/DiscoveryStartEventArgs.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Client/Events/DiscoveryStartEventArgs.cs @@ -4,9 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client { using System; - using System.Diagnostics; - - using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; /// /// Event arguments used when test discovery starts diff --git a/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunChangedEventArgs.cs b/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunChangedEventArgs.cs index d4e74fc850..89b672193e 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunChangedEventArgs.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunChangedEventArgs.cs @@ -6,9 +6,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client using System; using System.Collections.Generic; using System.Runtime.Serialization; - using System.Linq; - - using Microsoft.VisualStudio.TestPlatform.ObjectModel; /// /// The test run changed event args that provides the test results available. diff --git a/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunCompleteEventArgs.cs b/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunCompleteEventArgs.cs index 8fb460ace3..1a2ff34ad6 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunCompleteEventArgs.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunCompleteEventArgs.cs @@ -8,8 +8,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client using System.Collections.ObjectModel; using System.Runtime.Serialization; - using Microsoft.VisualStudio.TestPlatform.ObjectModel; - /// /// Event arguments used when a test run has completed. /// diff --git a/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunStartEventArgs.cs b/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunStartEventArgs.cs index 1619cfdd5a..06320f58a9 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunStartEventArgs.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunStartEventArgs.cs @@ -4,9 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client { using System; - using System.Diagnostics; - - using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; /// /// Event arguments used when test run starts diff --git a/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestRunStatistics.cs b/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestRunStatistics.cs index 8eb1ded518..43d6b52b70 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestRunStatistics.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Client/Interfaces/ITestRunStatistics.cs @@ -4,7 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client { using System.Collections.Generic; - using System.Runtime.Serialization; /// /// Stats on the test run state diff --git a/src/Microsoft.TestPlatform.ObjectModel/Client/Payloads/TestRunRequestPayload.cs b/src/Microsoft.TestPlatform.ObjectModel/Client/Payloads/TestRunRequestPayload.cs index 95e208b38c..8851fdec14 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Client/Payloads/TestRunRequestPayload.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Client/Payloads/TestRunRequestPayload.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client { using System.Collections.Generic; using System.Runtime.Serialization; - using Microsoft.VisualStudio.TestPlatform.ObjectModel; /// /// Class used to define the TestRunRequestPayload sent by the Vstest.console translation layers into design mode diff --git a/src/Microsoft.TestPlatform.ObjectModel/Client/TestRunStatistics.cs b/src/Microsoft.TestPlatform.ObjectModel/Client/TestRunStatistics.cs index c9c25c9612..cbfd4231f7 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Client/TestRunStatistics.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Client/TestRunStatistics.cs @@ -6,8 +6,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client using System.Collections.Generic; using System.Runtime.Serialization; - using Microsoft.VisualStudio.TestPlatform.ObjectModel; - /// /// Defines the test run stats header /// diff --git a/src/Microsoft.TestPlatform.ObjectModel/DataCollector/DataCollectionEnvironmentContext.cs b/src/Microsoft.TestPlatform.ObjectModel/DataCollector/DataCollectionEnvironmentContext.cs index 69b474bde5..386a75647f 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/DataCollector/DataCollectionEnvironmentContext.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/DataCollector/DataCollectionEnvironmentContext.cs @@ -3,7 +3,9 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection { +#if NET451 using System; +#endif /// /// Encapsulates the context of the environment a data collector is being hosted in. diff --git a/src/Microsoft.TestPlatform.ObjectModel/DataCollector/Events/TestHostLaunchedEvent.cs b/src/Microsoft.TestPlatform.ObjectModel/DataCollector/Events/TestHostLaunchedEvent.cs index fb437411e0..10aa6d93b8 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/DataCollector/Events/TestHostLaunchedEvent.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/DataCollector/Events/TestHostLaunchedEvent.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection { - using System; - using System.Diagnostics; using System.Runtime.Serialization; /// diff --git a/src/Microsoft.TestPlatform.ObjectModel/DataCollector/InProcDataCollector/InProcDataCollector.cs b/src/Microsoft.TestPlatform.ObjectModel/DataCollector/InProcDataCollector/InProcDataCollector.cs index 063c75e1cb..18eb7a78fb 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/DataCollector/InProcDataCollector/InProcDataCollector.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/DataCollector/InProcDataCollector/InProcDataCollector.cs @@ -3,7 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.InProcDataCollector { - using System; using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection; using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollector.InProcDataCollector; diff --git a/src/Microsoft.TestPlatform.ObjectModel/Host/ITestRunTimeProvider.cs b/src/Microsoft.TestPlatform.ObjectModel/Host/ITestRunTimeProvider.cs index 091f2a1a7f..8106cc91f4 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Host/ITestRunTimeProvider.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Host/ITestRunTimeProvider.cs @@ -8,7 +8,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Host using System.Threading; using System.Threading.Tasks; - using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; diff --git a/src/Microsoft.TestPlatform.ObjectModel/Logger/ITestLogger.cs b/src/Microsoft.TestPlatform.ObjectModel/Logger/ITestLogger.cs index 7d44f7e605..cf547de114 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Logger/ITestLogger.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Logger/ITestLogger.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client { - using System; - /// /// Interface implemented to log messages and results from tests. A class that /// implements this interface will be available for use if it exports its type via diff --git a/src/Microsoft.TestPlatform.ObjectModel/Logging/Interfaces/IMessageLogger.cs b/src/Microsoft.TestPlatform.ObjectModel/Logging/Interfaces/IMessageLogger.cs index 5abf9f12b1..c9028c09f9 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Logging/Interfaces/IMessageLogger.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Logging/Interfaces/IMessageLogger.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging { - using System; - /// /// Used for logging error warning and informational messages. /// diff --git a/src/Microsoft.TestPlatform.ObjectModel/Logging/TestMessageLevel.cs b/src/Microsoft.TestPlatform.ObjectModel/Logging/TestMessageLevel.cs index 1c4c2e8303..0b0cd6d004 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Logging/TestMessageLevel.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Logging/TestMessageLevel.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging { - using System; - /// /// Levels for test messages. /// diff --git a/src/Microsoft.TestPlatform.ObjectModel/Navigation/ISymbolReader.cs b/src/Microsoft.TestPlatform.ObjectModel/Navigation/ISymbolReader.cs index 83e3108c23..6aa582b52a 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Navigation/ISymbolReader.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Navigation/ISymbolReader.cs @@ -4,9 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Navigation { using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; /// /// Caches filename and line number for symbols in assembly. diff --git a/src/Microsoft.TestPlatform.ObjectModel/Navigation/NativeMethods.cs b/src/Microsoft.TestPlatform.ObjectModel/Navigation/NativeMethods.cs index 440c155751..8987e22311 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Navigation/NativeMethods.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Navigation/NativeMethods.cs @@ -6,9 +6,9 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Navigation { using System; using System.IO; - using System.Reflection; using System.Runtime.InteropServices; using PlatformAbstractions; + internal static class HResult { public static bool Failed(int hr) diff --git a/src/Microsoft.TestPlatform.ObjectModel/RunSettings/SettingsException.cs b/src/Microsoft.TestPlatform.ObjectModel/RunSettings/SettingsException.cs index 8199c289f6..539d5de954 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/RunSettings/SettingsException.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/RunSettings/SettingsException.cs @@ -4,7 +4,10 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel { using System; +#if NET451 using System.Runtime.Serialization; +#endif + /// /// Exception thrown by Run Settings when an error with a settings provider diff --git a/src/Microsoft.TestPlatform.ObjectModel/TestCase.cs b/src/Microsoft.TestPlatform.ObjectModel/TestCase.cs index 6e7b9669b8..a4493a5b31 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/TestCase.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/TestCase.cs @@ -6,13 +6,10 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel using System; using System.IO; using System.Runtime.Serialization; - - using System.Globalization; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities; - using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions; /// /// Stores information about a test case. diff --git a/src/Microsoft.TestPlatform.ObjectModel/TestOutcome.cs b/src/Microsoft.TestPlatform.ObjectModel/TestOutcome.cs index 407dab8102..d77e505c50 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/TestOutcome.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/TestOutcome.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel { - using System; - /// /// Represents the outcomes of a test case. /// diff --git a/src/Microsoft.TestPlatform.ObjectModel/TestProcessStartInfo.cs b/src/Microsoft.TestPlatform.ObjectModel/TestProcessStartInfo.cs index 519ac166fc..64f5861df3 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/TestProcessStartInfo.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/TestProcessStartInfo.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel { - using System; - using System.Diagnostics; using System.Collections.Generic; using System.Runtime.Serialization; diff --git a/src/Microsoft.TestPlatform.ObjectModel/Trait.cs b/src/Microsoft.TestPlatform.ObjectModel/Trait.cs index 0bfa8efa34..3c2ca54138 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Trait.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Trait.cs @@ -3,7 +3,9 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel { +#if NET451 using System; +#endif using System.Collections.Generic; using System.Runtime.Serialization; diff --git a/src/Microsoft.TestPlatform.ObjectModel/Utilities/SuspendCodeCoverage.cs b/src/Microsoft.TestPlatform.ObjectModel/Utilities/SuspendCodeCoverage.cs index 5df82777c2..9b54a56d80 100644 --- a/src/Microsoft.TestPlatform.ObjectModel/Utilities/SuspendCodeCoverage.cs +++ b/src/Microsoft.TestPlatform.ObjectModel/Utilities/SuspendCodeCoverage.cs @@ -5,9 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities { #if NET451 using System; - using System.Diagnostics; - using System.Globalization; - using System.Threading; /// /// Suspends the instrumentation (for code coverage) of the modules which are loaded diff --git a/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformApartmentState.cs b/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformApartmentState.cs index 2800dda0c5..be6d472f66 100644 --- a/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformApartmentState.cs +++ b/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformApartmentState.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.PlatformAbstractions { - using System; - /// /// Available apartment states for test platform. /// diff --git a/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformArchitecture.cs b/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformArchitecture.cs index 315ce99c15..990f4a1d42 100644 --- a/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformArchitecture.cs +++ b/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformArchitecture.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.PlatformAbstractions { - using System; - /// /// Available architectures for test platform. /// diff --git a/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformOperationSystem.cs b/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformOperationSystem.cs index 34b93b7309..e8cd1ec404 100644 --- a/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformOperationSystem.cs +++ b/src/Microsoft.TestPlatform.PlatformAbstractions/Interfaces/System/PlatformOperationSystem.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.PlatformAbstractions { - using System; - /// /// Available operating systems. /// diff --git a/src/Microsoft.TestPlatform.PlatformAbstractions/netcore/Runtime/PlatformAssemblyLoadContext.cs b/src/Microsoft.TestPlatform.PlatformAbstractions/netcore/Runtime/PlatformAssemblyLoadContext.cs index 371f0bb473..1c14a2b52c 100644 --- a/src/Microsoft.TestPlatform.PlatformAbstractions/netcore/Runtime/PlatformAssemblyLoadContext.cs +++ b/src/Microsoft.TestPlatform.PlatformAbstractions/netcore/Runtime/PlatformAssemblyLoadContext.cs @@ -3,8 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.PlatformAbstractions { - using System; - using System.IO; using System.Reflection; using System.Runtime.Loader; diff --git a/src/Microsoft.TestPlatform.PlatformAbstractions/netstandard/Tracing/PlatformEqtTrace.cs b/src/Microsoft.TestPlatform.PlatformAbstractions/netstandard/Tracing/PlatformEqtTrace.cs index 97b1387497..e4e169f2fd 100644 --- a/src/Microsoft.TestPlatform.PlatformAbstractions/netstandard/Tracing/PlatformEqtTrace.cs +++ b/src/Microsoft.TestPlatform.PlatformAbstractions/netstandard/Tracing/PlatformEqtTrace.cs @@ -4,7 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.ObjectModel { using System; - using System.Diagnostics; /// /// Wrapper class for tracing. diff --git a/src/Microsoft.TestPlatform.Utilities/CommandLineUtilities.cs b/src/Microsoft.TestPlatform.Utilities/CommandLineUtilities.cs index 93aed86fd9..800cc7a597 100644 --- a/src/Microsoft.TestPlatform.Utilities/CommandLineUtilities.cs +++ b/src/Microsoft.TestPlatform.Utilities/CommandLineUtilities.cs @@ -7,7 +7,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Utilities using System; using System.Collections.Generic; using System.Globalization; - using System.IO; using System.Text; public static class CommandLineUtilities diff --git a/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs b/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs index 544736d26a..2873ccce3d 100644 --- a/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs +++ b/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs @@ -7,7 +7,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Utilities using Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities; using System; using System.Collections.Generic; - using System.Dynamic; using System.Globalization; using System.IO; using System.Text; diff --git a/src/Microsoft.TestPlatform.Utilities/MSTestSettingsUtilities.cs b/src/Microsoft.TestPlatform.Utilities/MSTestSettingsUtilities.cs index 1d7abed540..08ccbe1c82 100644 --- a/src/Microsoft.TestPlatform.Utilities/MSTestSettingsUtilities.cs +++ b/src/Microsoft.TestPlatform.Utilities/MSTestSettingsUtilities.cs @@ -8,7 +8,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Utilities using System.Globalization; using System.IO; using System.Xml; - using System.Xml.XPath; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/src/Microsoft.TestPlatform.Utilities/ParallelRunSettingsUtilities.cs b/src/Microsoft.TestPlatform.Utilities/ParallelRunSettingsUtilities.cs index a61706edf4..a6961b9dee 100644 --- a/src/Microsoft.TestPlatform.Utilities/ParallelRunSettingsUtilities.cs +++ b/src/Microsoft.TestPlatform.Utilities/ParallelRunSettingsUtilities.cs @@ -3,11 +3,7 @@ namespace Microsoft.VisualStudio.TestPlatform.Utilities { - using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; - using System.Linq; - using System.Threading.Tasks; using System.Xml.XPath; /// diff --git a/src/Microsoft.TestPlatform.Utilities/Properties/AssemblyInfo.cs b/src/Microsoft.TestPlatform.Utilities/Properties/AssemblyInfo.cs index cba5140912..5e3b063fa3 100644 --- a/src/Microsoft.TestPlatform.Utilities/Properties/AssemblyInfo.cs +++ b/src/Microsoft.TestPlatform.Utilities/Properties/AssemblyInfo.cs @@ -3,7 +3,6 @@ using System.Reflection; using System.Resources; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/Microsoft.TestPlatform.Utilities/XmlUtilities.cs b/src/Microsoft.TestPlatform.Utilities/XmlUtilities.cs index 4da189fda7..074a738186 100644 --- a/src/Microsoft.TestPlatform.Utilities/XmlUtilities.cs +++ b/src/Microsoft.TestPlatform.Utilities/XmlUtilities.cs @@ -5,7 +5,9 @@ namespace Microsoft.VisualStudio.TestPlatform.Utilities { using System; using System.Diagnostics.CodeAnalysis; +#if NET451 using System.Security; +#endif using System.Xml; using System.Xml.XPath; diff --git a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/ConsoleParameters.cs b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/ConsoleParameters.cs index 1c4b0bf13b..6595f24375 100644 --- a/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/ConsoleParameters.cs +++ b/src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/ConsoleParameters.cs @@ -4,7 +4,9 @@ namespace Microsoft.TestPlatform.VsTestConsole.TranslationLayer { using System; +#if NET451 using System.Collections.Generic; +#endif using System.Diagnostics; using System.IO; diff --git a/src/SettingsMigrator/PathResolver.cs b/src/SettingsMigrator/PathResolver.cs index 000c5de252..b363428112 100644 --- a/src/SettingsMigrator/PathResolver.cs +++ b/src/SettingsMigrator/PathResolver.cs @@ -4,7 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.SettingsMigrator { using System; - using System.Globalization; using System.IO; /// diff --git a/src/SettingsMigrator/Program.cs b/src/SettingsMigrator/Program.cs index 9a585e04dc..93218beef7 100644 --- a/src/SettingsMigrator/Program.cs +++ b/src/SettingsMigrator/Program.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.SettingsMigrator { using System; using System.Globalization; - using System.IO; using CommandLineResources = Resources.Resources; /// diff --git a/src/SettingsMigrator/Properties/AssemblyInfo.cs b/src/SettingsMigrator/Properties/AssemblyInfo.cs index 008166990b..08e165147b 100644 --- a/src/SettingsMigrator/Properties/AssemblyInfo.cs +++ b/src/SettingsMigrator/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/datacollector/Properties/AssemblyInfo.cs b/src/datacollector/Properties/AssemblyInfo.cs index bc9e75ac72..9e902b9f63 100644 --- a/src/datacollector/Properties/AssemblyInfo.cs +++ b/src/datacollector/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/testhost.x86/IEngineInvoker.cs b/src/testhost.x86/IEngineInvoker.cs index 973eec2533..c37ddf0cb2 100644 --- a/src/testhost.x86/IEngineInvoker.cs +++ b/src/testhost.x86/IEngineInvoker.cs @@ -3,10 +3,7 @@ namespace Microsoft.VisualStudio.TestPlatform.TestHost { - using System; using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; /// /// Interface contract for invoking the engine diff --git a/src/testhost.x86/Program.cs b/src/testhost.x86/Program.cs index bd6db273fc..dd97bf6d65 100644 --- a/src/testhost.x86/Program.cs +++ b/src/testhost.x86/Program.cs @@ -12,7 +12,6 @@ namespace Microsoft.VisualStudio.TestPlatform.TestHost using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Tracing; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions; - using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.Interfaces; using Microsoft.VisualStudio.TestPlatform.Utilities; /// diff --git a/src/testhost.x86/Properties/AssemblyInfo.cs b/src/testhost.x86/Properties/AssemblyInfo.cs index a077ef9ad2..a1ea0c91c9 100644 --- a/src/testhost.x86/Properties/AssemblyInfo.cs +++ b/src/testhost.x86/Properties/AssemblyInfo.cs @@ -3,7 +3,6 @@ using System.Reflection; using System.Resources; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/testhost/Properties/AssemblyInfo.cs b/src/testhost/Properties/AssemblyInfo.cs index aff5c17e7b..54aecbfac4 100644 --- a/src/testhost/Properties/AssemblyInfo.cs +++ b/src/testhost/Properties/AssemblyInfo.cs @@ -3,7 +3,6 @@ using System.Reflection; using System.Resources; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/vstest.console/CommandLine/CommandLineOptions.cs b/src/vstest.console/CommandLine/CommandLineOptions.cs index 1ca3e70d75..64d212043b 100644 --- a/src/vstest.console/CommandLine/CommandLineOptions.cs +++ b/src/vstest.console/CommandLine/CommandLineOptions.cs @@ -13,10 +13,8 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine using Utilities.Helpers.Interfaces; using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources; - using System.IO; using vstest.console.Internal; using System.Globalization; - using System.Collections; /// /// Provides access to the command-line options. diff --git a/src/vstest.console/CommandLine/InferHelper.cs b/src/vstest.console/CommandLine/InferHelper.cs index c35171b6ba..3b3fc46edf 100644 --- a/src/vstest.console/CommandLine/InferHelper.cs +++ b/src/vstest.console/CommandLine/InferHelper.cs @@ -6,13 +6,8 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLineUtilities using System; using System.Collections.Generic; using System.IO; - using System.Linq; using System.Runtime.Versioning; - using Microsoft.VisualStudio.TestPlatform.CommandLine; - using Microsoft.VisualStudio.TestPlatform.Common.Utilities; using Microsoft.VisualStudio.TestPlatform.CommandLine.Processors; - using Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.Utilities; - using Microsoft.VisualStudio.TestPlatform.Common.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel; internal class InferHelper diff --git a/src/vstest.console/Processors/DisableAutoFakesArgumentProcessor.cs b/src/vstest.console/Processors/DisableAutoFakesArgumentProcessor.cs index 0ca1e90472..90396805ef 100644 --- a/src/vstest.console/Processors/DisableAutoFakesArgumentProcessor.cs +++ b/src/vstest.console/Processors/DisableAutoFakesArgumentProcessor.cs @@ -4,7 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Processors { using System; - using System.Globalization; using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources; diff --git a/src/vstest.console/Processors/EnableLoggerArgumentProcessor.cs b/src/vstest.console/Processors/EnableLoggerArgumentProcessor.cs index 2b56f96a1e..c6cd204c11 100644 --- a/src/vstest.console/Processors/EnableLoggerArgumentProcessor.cs +++ b/src/vstest.console/Processors/EnableLoggerArgumentProcessor.cs @@ -4,18 +4,13 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Processors { using System; - using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Globalization; using System.Linq; - using System.Xml; using Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.Utilities; using Microsoft.VisualStudio.TestPlatform.Common; using Microsoft.VisualStudio.TestPlatform.Common.Interfaces; - using Microsoft.VisualStudio.TestPlatform.Common.Utilities; - using Microsoft.VisualStudio.TestPlatform.ObjectModel; - using Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities; using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources; /// diff --git a/src/vstest.console/Processors/ListFullyQualifiedTestsArgumentProcessor.cs b/src/vstest.console/Processors/ListFullyQualifiedTestsArgumentProcessor.cs index 4411fdc609..9b92c0c902 100644 --- a/src/vstest.console/Processors/ListFullyQualifiedTestsArgumentProcessor.cs +++ b/src/vstest.console/Processors/ListFullyQualifiedTestsArgumentProcessor.cs @@ -11,7 +11,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Processors using System.Linq; using Microsoft.VisualStudio.TestPlatform.Client.RequestHelper; - using Microsoft.VisualStudio.TestPlatform.CommandLine; using Microsoft.VisualStudio.TestPlatform.CommandLine.Internal; using Microsoft.VisualStudio.TestPlatform.CommandLine.TestPlatformHelpers; using Microsoft.VisualStudio.TestPlatform.Common; diff --git a/src/vstest.console/Processors/ListTestsArgumentProcessor.cs b/src/vstest.console/Processors/ListTestsArgumentProcessor.cs index 4695cd39c3..23155b2e7c 100644 --- a/src/vstest.console/Processors/ListTestsArgumentProcessor.cs +++ b/src/vstest.console/Processors/ListTestsArgumentProcessor.cs @@ -9,7 +9,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Processors using System.Linq; using Microsoft.VisualStudio.TestPlatform.Client.RequestHelper; - using Microsoft.VisualStudio.TestPlatform.CommandLine; using Microsoft.VisualStudio.TestPlatform.CommandLine.Internal; using Microsoft.VisualStudio.TestPlatform.CommandLine.TestPlatformHelpers; using Microsoft.VisualStudio.TestPlatform.Common; diff --git a/src/vstest.console/Processors/ListTestsTargetPathArgumentProcessor.cs b/src/vstest.console/Processors/ListTestsTargetPathArgumentProcessor.cs index af06b7d0db..95e5d71f72 100644 --- a/src/vstest.console/Processors/ListTestsTargetPathArgumentProcessor.cs +++ b/src/vstest.console/Processors/ListTestsTargetPathArgumentProcessor.cs @@ -6,7 +6,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Processors using System; using System.Diagnostics.Contracts; using System.Globalization; - using Microsoft.VisualStudio.TestPlatform.CommandLine; using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources; /// diff --git a/src/vstest.console/Processors/ParentProcessIdArgumentProcessor.cs b/src/vstest.console/Processors/ParentProcessIdArgumentProcessor.cs index 08802f2bbe..f782207dc8 100644 --- a/src/vstest.console/Processors/ParentProcessIdArgumentProcessor.cs +++ b/src/vstest.console/Processors/ParentProcessIdArgumentProcessor.cs @@ -6,8 +6,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Processors using System; using System.Diagnostics.Contracts; - using Microsoft.VisualStudio.TestPlatform.CommandLine; - using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources; /// diff --git a/src/vstest.console/Processors/PortArgumentProcessor.cs b/src/vstest.console/Processors/PortArgumentProcessor.cs index 0e6b42af3f..884cc7a55f 100644 --- a/src/vstest.console/Processors/PortArgumentProcessor.cs +++ b/src/vstest.console/Processors/PortArgumentProcessor.cs @@ -4,13 +4,11 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Processors { using System; - using System.Diagnostics; using System.Diagnostics.Contracts; using System.Globalization; using Microsoft.VisualStudio.TestPlatform.Client.DesignMode; using Microsoft.VisualStudio.TestPlatform.Client.RequestHelper; - using Microsoft.VisualStudio.TestPlatform.CommandLine; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions; using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.Interfaces; diff --git a/src/vstest.console/Processors/ResponseFileArgumentProcessor.cs b/src/vstest.console/Processors/ResponseFileArgumentProcessor.cs index 101895952b..5885abf0fe 100644 --- a/src/vstest.console/Processors/ResponseFileArgumentProcessor.cs +++ b/src/vstest.console/Processors/ResponseFileArgumentProcessor.cs @@ -4,9 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Processors { using System; - using System.Diagnostics.Contracts; - using System.Globalization; - using Microsoft.VisualStudio.TestPlatform.ObjectModel; using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources; diff --git a/src/vstest.console/Processors/RunSettingsArgumentProcessor.cs b/src/vstest.console/Processors/RunSettingsArgumentProcessor.cs index 734386c18c..92866c7ec8 100644 --- a/src/vstest.console/Processors/RunSettingsArgumentProcessor.cs +++ b/src/vstest.console/Processors/RunSettingsArgumentProcessor.cs @@ -4,14 +4,12 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Processors { using System; - using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Contracts; using System.Globalization; using System.IO; using System.Text; using System.Xml; - using System.Xml.XPath; using Microsoft.VisualStudio.TestPlatform.Common; using Microsoft.VisualStudio.TestPlatform.Common.Interfaces; diff --git a/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/EventLogSessionContextTests.cs b/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/EventLogSessionContextTests.cs index 04b50ace2f..3fedfc1ef2 100644 --- a/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/EventLogSessionContextTests.cs +++ b/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/EventLogSessionContextTests.cs @@ -8,8 +8,6 @@ namespace Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests using Microsoft.VisualStudio.TestTools.UnitTesting; - using Moq; - [TestClass] public class EventLogSessionContextTests { diff --git a/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/EventLogXmlWriterTests.cs b/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/EventLogXmlWriterTests.cs index bcc09acc72..ea9db1ada7 100644 --- a/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/EventLogXmlWriterTests.cs +++ b/test/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests/EventLogXmlWriterTests.cs @@ -3,11 +3,8 @@ namespace Microsoft.TestPlatform.Extensions.EventLogCollector.UnitTests { - using System; using System.Collections.Generic; using System.Diagnostics; - using System.IO; - using System.Xml; using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/DataCollectors/TraceDataCollector.UnitTests/Properties/AssemblyInfo.cs b/test/DataCollectors/TraceDataCollector.UnitTests/Properties/AssemblyInfo.cs index f0ec08dd62..fb892d21e1 100644 --- a/test/DataCollectors/TraceDataCollector.UnitTests/Properties/AssemblyInfo.cs +++ b/test/DataCollectors/TraceDataCollector.UnitTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/Microsoft.TestPlatform.AcceptanceTests/AcceptanceTestBase.cs b/test/Microsoft.TestPlatform.AcceptanceTests/AcceptanceTestBase.cs index 9b8e324a62..211b4f9857 100644 --- a/test/Microsoft.TestPlatform.AcceptanceTests/AcceptanceTestBase.cs +++ b/test/Microsoft.TestPlatform.AcceptanceTests/AcceptanceTestBase.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using Microsoft.VisualStudio.TestTools.UnitTesting; - namespace Microsoft.TestPlatform.AcceptanceTests { using System; diff --git a/test/Microsoft.TestPlatform.AcceptanceTests/AppDomainTests.cs b/test/Microsoft.TestPlatform.AcceptanceTests/AppDomainTests.cs index 0d69741cfa..fb7b3f66c1 100644 --- a/test/Microsoft.TestPlatform.AcceptanceTests/AppDomainTests.cs +++ b/test/Microsoft.TestPlatform.AcceptanceTests/AppDomainTests.cs @@ -5,7 +5,6 @@ namespace Microsoft.TestPlatform.AcceptanceTests { using System; using System.IO; - using System.Linq; #if !NET451 using System.Runtime.Loader; #else diff --git a/test/Microsoft.TestPlatform.AcceptanceTests/CUITTest.cs b/test/Microsoft.TestPlatform.AcceptanceTests/CUITTest.cs index df83043d2b..9f8ac9aeb1 100644 --- a/test/Microsoft.TestPlatform.AcceptanceTests/CUITTest.cs +++ b/test/Microsoft.TestPlatform.AcceptanceTests/CUITTest.cs @@ -4,10 +4,6 @@ namespace Microsoft.TestPlatform.AcceptanceTests { using Microsoft.VisualStudio.TestTools.UnitTesting; - using System; - using System.Collections.Generic; - using System.IO; - using System.Text; [TestClass] public class CUITTest : AcceptanceTestBase diff --git a/test/Microsoft.TestPlatform.AcceptanceTests/DisableAppdomainTests.cs b/test/Microsoft.TestPlatform.AcceptanceTests/DisableAppdomainTests.cs index 048a180206..bc0765a1ef 100644 --- a/test/Microsoft.TestPlatform.AcceptanceTests/DisableAppdomainTests.cs +++ b/test/Microsoft.TestPlatform.AcceptanceTests/DisableAppdomainTests.cs @@ -7,7 +7,6 @@ namespace Microsoft.TestPlatform.AcceptanceTests using System; using System.Collections.Generic; using System.IO; - using System.Text; [TestClass] public class DisableAppdomainTests : AcceptanceTestBase diff --git a/test/Microsoft.TestPlatform.Build.UnitTests/ArgumentEscaperTests.cs b/test/Microsoft.TestPlatform.Build.UnitTests/ArgumentEscaperTests.cs index b865d67a40..31bfa52afc 100644 --- a/test/Microsoft.TestPlatform.Build.UnitTests/ArgumentEscaperTests.cs +++ b/test/Microsoft.TestPlatform.Build.UnitTests/ArgumentEscaperTests.cs @@ -2,7 +2,6 @@ namespace Microsoft.TestPlatform.Build.Utils.UnitTests { - using Microsoft.TestPlatform.Build.Utils; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] diff --git a/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeClientTests.cs b/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeClientTests.cs index 0ce1f8304f..ba94fb41e4 100644 --- a/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeClientTests.cs +++ b/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeClientTests.cs @@ -4,7 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Client.UnitTests.DesignMode { using System; using System.Linq; - using System.Linq.Expressions; using System.Net; using System.Threading; using System.Threading.Tasks; diff --git a/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeTestHostLauncherFactoryTests.cs b/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeTestHostLauncherFactoryTests.cs index b0dbf5b47a..e2098781cf 100644 --- a/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeTestHostLauncherFactoryTests.cs +++ b/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeTestHostLauncherFactoryTests.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Client.UnitTests.DesignMode { using Microsoft.VisualStudio.TestPlatform.Client.DesignMode; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; - using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; diff --git a/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeTestHostLauncherTests.cs b/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeTestHostLauncherTests.cs index 14d1df5c1e..01f98448fb 100644 --- a/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeTestHostLauncherTests.cs +++ b/test/Microsoft.TestPlatform.Client.UnitTests/DesignMode/DesignModeTestHostLauncherTests.cs @@ -3,11 +3,8 @@ using Microsoft.VisualStudio.TestPlatform.Client.DesignMode; using Microsoft.VisualStudio.TestPlatform.ObjectModel; -using Microsoft.VisualStudio.TestPlatform.ObjectModel.Host; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; -using System; -using System.Collections.Generic; using System.Threading; namespace Microsoft.VisualStudio.TestPlatform.Client.UnitTests.DesignMode diff --git a/test/Microsoft.TestPlatform.Client.UnitTests/Properties/AssemblyInfo.cs b/test/Microsoft.TestPlatform.Client.UnitTests/Properties/AssemblyInfo.cs index 4374a49158..00ddea45ca 100644 --- a/test/Microsoft.TestPlatform.Client.UnitTests/Properties/AssemblyInfo.cs +++ b/test/Microsoft.TestPlatform.Client.UnitTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/DataCollectorExtensionManagerTests.cs b/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/DataCollectorExtensionManagerTests.cs index 5f774e0b30..de7ab0778f 100644 --- a/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/DataCollectorExtensionManagerTests.cs +++ b/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/DataCollectorExtensionManagerTests.cs @@ -10,7 +10,6 @@ namespace Microsoft.TestPlatform.Common.UnitTests.ExtensionFramework using Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework; using Microsoft.VisualStudio.TestPlatform.Common.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; - using TestPlatform.Common.UnitTests.ExtensionFramework; [TestClass] public class DataCollectorExtensionManagerTests diff --git a/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestLoggerExtensionManagerTests.cs b/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestLoggerExtensionManagerTests.cs index 9fc03f21bb..6f362560b1 100644 --- a/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestLoggerExtensionManagerTests.cs +++ b/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestLoggerExtensionManagerTests.cs @@ -3,7 +3,6 @@ namespace TestPlatform.Common.UnitTests.ExtensionFramework { - using global::TestPlatform.Common.UnitTests.ExtensionFramework; using Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework; using Microsoft.VisualStudio.TestPlatform.Common.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestPluginDiscovererTests.cs b/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestPluginDiscovererTests.cs index 4b930a546d..b75972a9be 100644 --- a/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestPluginDiscovererTests.cs +++ b/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestPluginDiscovererTests.cs @@ -20,8 +20,6 @@ namespace TestPlatform.Common.UnitTests.ExtensionFramework using Microsoft.VisualStudio.TestTools.UnitTesting; using MSTest.TestFramework.AssertExtensions; - using Moq; - using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; [TestClass] public class TestPluginDiscovererTests diff --git a/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestPluginManagerTests.cs b/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestPluginManagerTests.cs index fc7c5f26cd..2ebf2ec23a 100644 --- a/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestPluginManagerTests.cs +++ b/test/Microsoft.TestPlatform.Common.UnitTests/ExtensionFramework/TestPluginManagerTests.cs @@ -5,7 +5,6 @@ namespace TestPlatform.Common.UnitTests.ExtensionFramework { using System; using System.Collections.Generic; - using System.IO; using System.Linq; using System.Reflection; @@ -17,11 +16,8 @@ namespace TestPlatform.Common.UnitTests.ExtensionFramework using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; - using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; using Microsoft.VisualStudio.TestTools.UnitTesting; - using Moq; - [TestClass] public class TestPluginManagerTests { diff --git a/test/Microsoft.TestPlatform.Common.UnitTests/Hosting/TestHostExtensionManagerTests.cs b/test/Microsoft.TestPlatform.Common.UnitTests/Hosting/TestHostExtensionManagerTests.cs index 4f778dcf95..d6ac9d856d 100644 --- a/test/Microsoft.TestPlatform.Common.UnitTests/Hosting/TestHostExtensionManagerTests.cs +++ b/test/Microsoft.TestPlatform.Common.UnitTests/Hosting/TestHostExtensionManagerTests.cs @@ -5,8 +5,6 @@ namespace TestPlatform.Common.UnitTests.Logging { using Microsoft.VisualStudio.TestPlatform.Common.Hosting; using Microsoft.VisualStudio.TestPlatform.Common.Logging; - using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; - using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using TestPlatform.Common.UnitTests.ExtensionFramework; diff --git a/test/Microsoft.TestPlatform.Common.UnitTests/RunSettingsTests.cs b/test/Microsoft.TestPlatform.Common.UnitTests/RunSettingsTests.cs index adec8d5fe7..c2b801c32e 100644 --- a/test/Microsoft.TestPlatform.Common.UnitTests/RunSettingsTests.cs +++ b/test/Microsoft.TestPlatform.Common.UnitTests/RunSettingsTests.cs @@ -4,12 +4,10 @@ namespace TestPlatform.Common.UnitTests { using System; - using System.Runtime.InteropServices; using System.Xml; using ExtensionFramework; - using Microsoft.VisualBasic; using Microsoft.VisualStudio.TestPlatform.Common; using Microsoft.VisualStudio.TestPlatform.Common.Logging; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/test/Microsoft.TestPlatform.CommunicationUtilities.PlatformTests/SocketCommunicationManagerTests.cs b/test/Microsoft.TestPlatform.CommunicationUtilities.PlatformTests/SocketCommunicationManagerTests.cs index 9faed62488..eaa60b437a 100644 --- a/test/Microsoft.TestPlatform.CommunicationUtilities.PlatformTests/SocketCommunicationManagerTests.cs +++ b/test/Microsoft.TestPlatform.CommunicationUtilities.PlatformTests/SocketCommunicationManagerTests.cs @@ -4,7 +4,6 @@ namespace Microsoft.TestPlatform.CommunicationUtilities.PlatformTests { using System; - using System.Diagnostics; using System.IO; using System.Net; using System.Net.Sockets; diff --git a/test/Microsoft.TestPlatform.CommunicationUtilities.PlatformTests/SocketTestsBase.cs b/test/Microsoft.TestPlatform.CommunicationUtilities.PlatformTests/SocketTestsBase.cs index e8ce03cf8f..575b1e3100 100644 --- a/test/Microsoft.TestPlatform.CommunicationUtilities.PlatformTests/SocketTestsBase.cs +++ b/test/Microsoft.TestPlatform.CommunicationUtilities.PlatformTests/SocketTestsBase.cs @@ -3,13 +3,9 @@ namespace Microsoft.TestPlatform.CommunicationUtilities.PlatformTests { - using System; using System.IO; - using System.Net; using System.Net.Sockets; using System.Threading; - using System.Threading.Tasks; - using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/DataCollectionRequestHandlerTests.cs b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/DataCollectionRequestHandlerTests.cs index d8855489a8..e34b9a18ca 100644 --- a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/DataCollectionRequestHandlerTests.cs +++ b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/DataCollectionRequestHandlerTests.cs @@ -16,7 +16,6 @@ namespace Microsoft.TestPlatform.CommunicationUtilities.UnitTests using Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.DataCollection; - using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.DataCollection.Interfaces; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/DataCollectionRequestSenderTests.cs b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/DataCollectionRequestSenderTests.cs index be99dad1bc..74381f5136 100644 --- a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/DataCollectionRequestSenderTests.cs +++ b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/DataCollectionRequestSenderTests.cs @@ -12,7 +12,6 @@ namespace Microsoft.TestPlatform.CommunicationUtilities.UnitTests using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel; - using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; diff --git a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/JsonDataSerializerTests.cs b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/JsonDataSerializerTests.cs index 63d122cf5b..ee44f8eefa 100644 --- a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/JsonDataSerializerTests.cs +++ b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/JsonDataSerializerTests.cs @@ -4,9 +4,7 @@ namespace Microsoft.TestPlatform.CommunicationUtilities.UnitTests { using System; - using System.Collections.Generic; using System.Linq; - using System.Runtime.Serialization; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; diff --git a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/LengthPrefixCommunicationChannelTests.cs b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/LengthPrefixCommunicationChannelTests.cs index 57b7369216..b63e2aab23 100644 --- a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/LengthPrefixCommunicationChannelTests.cs +++ b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/LengthPrefixCommunicationChannelTests.cs @@ -7,7 +7,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.UnitTests using System.IO; using System.Threading.Tasks; - using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/Properties/AssemblyInfo.cs b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/Properties/AssemblyInfo.cs index 13928af5d2..cbcdde9cd4 100644 --- a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/Properties/AssemblyInfo.cs +++ b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/TestRequestSenderTests.cs b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/TestRequestSenderTests.cs index 4d4d666a63..5b40d4d776 100644 --- a/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/TestRequestSenderTests.cs +++ b/test/Microsoft.TestPlatform.CommunicationUtilities.UnitTests/TestRequestSenderTests.cs @@ -5,12 +5,10 @@ namespace Microsoft.TestPlatform.CommunicationUtilities.UnitTests { using System; using System.Collections.Generic; - using System.Globalization; using System.Linq; using System.Net; using System.Net.Sockets; using System.Threading; - using System.Threading.Tasks; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; diff --git a/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Helpers/EnvironmentHelperTests.cs b/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Helpers/EnvironmentHelperTests.cs index c8f4f04117..35124678e4 100644 --- a/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Helpers/EnvironmentHelperTests.cs +++ b/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Helpers/EnvironmentHelperTests.cs @@ -4,7 +4,6 @@ namespace Microsoft.TestPlatform.CoreUtilities.UnitTests.Helpers { using System; - using System.Collections.Generic; using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Helpers; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Properties/AssemblyInfo.cs b/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Properties/AssemblyInfo.cs index 647a1b025d..3b803ea111 100644 --- a/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Properties/AssemblyInfo.cs +++ b/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Tracing/EqtTraceTests.cs b/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Tracing/EqtTraceTests.cs index b60a0440b2..5e5bd2ec26 100644 --- a/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Tracing/EqtTraceTests.cs +++ b/test/Microsoft.TestPlatform.CoreUtilities.UnitTests/Tracing/EqtTraceTests.cs @@ -3,12 +3,13 @@ namespace TestPlatform.CoreUtilities.UnitTests { +#if NET451 using System.Diagnostics; +#endif using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using System; - using System.Text; [TestClass] public class EqtTraceTests diff --git a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/InProcDataCollectionSinkTests.cs b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/InProcDataCollectionSinkTests.cs index 0b8c27eddc..c527e23402 100644 --- a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/InProcDataCollectionSinkTests.cs +++ b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/InProcDataCollectionSinkTests.cs @@ -5,15 +5,11 @@ namespace TestPlatform.CrossPlatEngine.UnitTests.DataCollection { using System; - using Castle.DynamicProxy.Generators.Emitters; - using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.DataCollection; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection; using Microsoft.VisualStudio.TestTools.UnitTesting; - using TestPlatform.CrossPlatEngine.UnitTests.Discovery; - [TestClass] public class InProcDataCollectionSinkTests { diff --git a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/ProxyDataCollectionManagerTests.cs b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/ProxyDataCollectionManagerTests.cs index ff86ad4359..e4846fd8f5 100644 --- a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/ProxyDataCollectionManagerTests.cs +++ b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/DataCollection/ProxyDataCollectionManagerTests.cs @@ -7,7 +7,6 @@ namespace TestPlatform.CrossPlatEngine.UnitTests.DataCollection using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; - using System.Globalization; using System.IO; using System.Reflection; @@ -28,7 +27,6 @@ namespace TestPlatform.CrossPlatEngine.UnitTests.DataCollection using CoreUtilitiesConstants = Microsoft.VisualStudio.TestPlatform.CoreUtilities.Constants; using Moq; - using System.Collections; [TestClass] public class ProxyDataCollectionManagerTests diff --git a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Execution/TestRunCacheTests.cs b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Execution/TestRunCacheTests.cs index 5174551fa3..19938f825b 100644 --- a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Execution/TestRunCacheTests.cs +++ b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Execution/TestRunCacheTests.cs @@ -5,9 +5,7 @@ namespace TestPlatform.CrossPlatEngine.UnitTests.Execution { using System; using System.Collections.Generic; - using System.Globalization; using System.Linq; - using System.Threading; using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/TestLoggerManagerTests.cs b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/TestLoggerManagerTests.cs index 8f2460c47c..949de7bb5c 100644 --- a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/TestLoggerManagerTests.cs +++ b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/TestLoggerManagerTests.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using System.Reflection.PortableExecutable; using Microsoft.VisualStudio.TestPlatform.Common.Exceptions; namespace TestPlatform.CrossPlatEngine.UnitTests @@ -11,7 +10,6 @@ namespace TestPlatform.CrossPlatEngine.UnitTests using System.Reflection; using System.Threading; using global::TestPlatform.Common.UnitTests.ExtensionFramework; - using Microsoft.VisualStudio.TestPlatform.Common; using Microsoft.VisualStudio.TestPlatform.Common.Logging; using Microsoft.VisualStudio.TestPlatform.Common.Telemetry; using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client; diff --git a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/TestableImplementations/TestableTestEngine.cs b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/TestableImplementations/TestableTestEngine.cs index e2bf3791a7..f850fb8f6f 100644 --- a/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/TestableImplementations/TestableTestEngine.cs +++ b/test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/TestableImplementations/TestableTestEngine.cs @@ -5,7 +5,6 @@ namespace TestPlatform.CrossPlatEngine.UnitTests { using Microsoft.VisualStudio.TestPlatform.Common.Hosting; using Microsoft.VisualStudio.TestPlatform.CrossPlatEngine; - using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions; using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.Interfaces; public class TestableTestEngine : TestEngine diff --git a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/BlameCollectorTests.cs b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/BlameCollectorTests.cs index fc622a0ee0..4cb8180e67 100644 --- a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/BlameCollectorTests.cs +++ b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/BlameCollectorTests.cs @@ -11,7 +11,6 @@ namespace Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests using System.Threading; using System.Xml; - using Microsoft.TestPlatform.Extensions.BlameDataCollector; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection; using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; diff --git a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/BlameLoggerTests.cs b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/BlameLoggerTests.cs index 3debbdce14..958763d7c3 100644 --- a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/BlameLoggerTests.cs +++ b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/BlameLoggerTests.cs @@ -7,7 +7,6 @@ namespace Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests using System.Collections.Generic; using System.Collections.ObjectModel; - using Microsoft.TestPlatform.Extensions.BlameDataCollector; using Microsoft.VisualStudio.TestPlatform.Common.Logging; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; diff --git a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/ProcessDumpUtilityTests.cs b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/ProcessDumpUtilityTests.cs index 835ca9d177..f22af4865a 100644 --- a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/ProcessDumpUtilityTests.cs +++ b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/ProcessDumpUtilityTests.cs @@ -4,11 +4,9 @@ namespace Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests { using System; - using System.Collections.Generic; using System.Diagnostics; using System.IO; - using Microsoft.TestPlatform.Extensions.BlameDataCollector; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions; using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.Interfaces; diff --git a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/XmlReaderWriterTests.cs b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/XmlReaderWriterTests.cs index c2655282b3..c8b7b5f689 100644 --- a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/XmlReaderWriterTests.cs +++ b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/XmlReaderWriterTests.cs @@ -7,7 +7,6 @@ namespace Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests using System.Collections.Generic; using System.IO; using System.Linq; - using Microsoft.TestPlatform.Extensions.BlameDataCollector; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests/Program.cs b/test/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests/Program.cs index d674656dd0..a67797b97c 100644 --- a/test/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests/Program.cs +++ b/test/Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests/Program.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests +namespace Microsoft.TestPlatform.Extensions.HtmlLogger.UnitTests { public static class Program { diff --git a/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Properties/AssemblyInfo.cs b/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Properties/AssemblyInfo.cs index d0d12f9081..157b4a32ca 100644 --- a/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Properties/AssemblyInfo.cs +++ b/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Utility/ConverterTests.cs b/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Utility/ConverterTests.cs index 32dd8ea959..8d1e341c9e 100644 --- a/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Utility/ConverterTests.cs +++ b/test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/Utility/ConverterTests.cs @@ -7,7 +7,6 @@ namespace Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests.Utility using System.Collections.Generic; using System.IO; using System.Linq; - using System.Xml; using Microsoft.TestPlatform.Extensions.TrxLogger.Utility; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/Microsoft.TestPlatform.ObjectModel.PlatformTests/Properties/AssemblyInfo.cs b/test/Microsoft.TestPlatform.ObjectModel.PlatformTests/Properties/AssemblyInfo.cs index a8e1c57c47..0051c9c7aa 100644 --- a/test/Microsoft.TestPlatform.ObjectModel.PlatformTests/Properties/AssemblyInfo.cs +++ b/test/Microsoft.TestPlatform.ObjectModel.PlatformTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/Microsoft.TestPlatform.ObjectModel.UnitTests/CustomStringArrayConverterTests.cs b/test/Microsoft.TestPlatform.ObjectModel.UnitTests/CustomStringArrayConverterTests.cs index 8689892381..7b7b4802c5 100644 --- a/test/Microsoft.TestPlatform.ObjectModel.UnitTests/CustomStringArrayConverterTests.cs +++ b/test/Microsoft.TestPlatform.ObjectModel.UnitTests/CustomStringArrayConverterTests.cs @@ -3,10 +3,7 @@ namespace Microsoft.TestPlatform.ObjectModel.UnitTests { - using System; - using System.Collections.Generic; using System.Globalization; - using System.Runtime.Serialization; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/Microsoft.TestPlatform.ObjectModel.UnitTests/FrameworkTests.cs b/test/Microsoft.TestPlatform.ObjectModel.UnitTests/FrameworkTests.cs index e6db242f84..d8ff68a75d 100644 --- a/test/Microsoft.TestPlatform.ObjectModel.UnitTests/FrameworkTests.cs +++ b/test/Microsoft.TestPlatform.ObjectModel.UnitTests/FrameworkTests.cs @@ -3,8 +3,6 @@ namespace Microsoft.TestPlatform.ObjectModel.UnitTests { - using System.Runtime.Versioning; - using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Properties/AssemblyInfo.cs b/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Properties/AssemblyInfo.cs index ae5769c0ee..a28b900e2c 100644 --- a/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Properties/AssemblyInfo.cs +++ b/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Utilities/XmlRunSettingsUtilitiesTests.cs b/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Utilities/XmlRunSettingsUtilitiesTests.cs index d61b51d07b..6c829faafe 100644 --- a/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Utilities/XmlRunSettingsUtilitiesTests.cs +++ b/test/Microsoft.TestPlatform.ObjectModel.UnitTests/Utilities/XmlRunSettingsUtilitiesTests.cs @@ -7,7 +7,6 @@ namespace Microsoft.TestPlatform.ObjectModel.UnitTests.Utilities { using System.Collections.Generic; - using System.Globalization; using System.Linq; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Resources; diff --git a/test/Microsoft.TestPlatform.PerformanceTests/Properties/AssemblyInfo.cs b/test/Microsoft.TestPlatform.PerformanceTests/Properties/AssemblyInfo.cs index fa7b252b08..694542bbb7 100644 --- a/test/Microsoft.TestPlatform.PerformanceTests/Properties/AssemblyInfo.cs +++ b/test/Microsoft.TestPlatform.PerformanceTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/Microsoft.TestPlatform.PerformanceTests/TranslationLayer/ExecutionPerfTests.cs b/test/Microsoft.TestPlatform.PerformanceTests/TranslationLayer/ExecutionPerfTests.cs index f574ec25a4..6bab317f50 100644 --- a/test/Microsoft.TestPlatform.PerformanceTests/TranslationLayer/ExecutionPerfTests.cs +++ b/test/Microsoft.TestPlatform.PerformanceTests/TranslationLayer/ExecutionPerfTests.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; +using System.Collections.Generic; using Microsoft.TestPlatform.VsTestConsole.TranslationLayer.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/Microsoft.TestPlatform.TestUtilities/NumberOfProcessLaunchedUtility.cs b/test/Microsoft.TestPlatform.TestUtilities/NumberOfProcessLaunchedUtility.cs index 5a1828d0f0..a55431701f 100644 --- a/test/Microsoft.TestPlatform.TestUtilities/NumberOfProcessLaunchedUtility.cs +++ b/test/Microsoft.TestPlatform.TestUtilities/NumberOfProcessLaunchedUtility.cs @@ -3,9 +3,7 @@ namespace TestPlatform.TestUtilities { - using System; using System.Collections.Generic; - using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Threading; diff --git a/test/Microsoft.TestPlatform.TestUtilities/PerfInstrumentation/PerformanceTestBase.cs b/test/Microsoft.TestPlatform.TestUtilities/PerfInstrumentation/PerformanceTestBase.cs index e514227e8a..57f3b0adcd 100644 --- a/test/Microsoft.TestPlatform.TestUtilities/PerfInstrumentation/PerformanceTestBase.cs +++ b/test/Microsoft.TestPlatform.TestUtilities/PerfInstrumentation/PerformanceTestBase.cs @@ -3,11 +3,8 @@ namespace Microsoft.TestPlatform.TestUtilities.PerfInstrumentation { - using System.Collections; using System.Collections.Generic; - using Microsoft.TestPlatform.TestUtilities; - /// /// The performance test base. /// diff --git a/test/Microsoft.TestPlatform.TestUtilities/Properties/AssemblyInfo.cs b/test/Microsoft.TestPlatform.TestUtilities/Properties/AssemblyInfo.cs index f710820df3..6a3cf582da 100644 --- a/test/Microsoft.TestPlatform.TestUtilities/Properties/AssemblyInfo.cs +++ b/test/Microsoft.TestPlatform.TestUtilities/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/Microsoft.TestPlatform.Utilities.UnitTests/InferRunSettingsHelperTests.cs b/test/Microsoft.TestPlatform.Utilities.UnitTests/InferRunSettingsHelperTests.cs index 5283c7fbc2..3dea75f96c 100644 --- a/test/Microsoft.TestPlatform.Utilities.UnitTests/InferRunSettingsHelperTests.cs +++ b/test/Microsoft.TestPlatform.Utilities.UnitTests/InferRunSettingsHelperTests.cs @@ -5,19 +5,15 @@ namespace Microsoft.TestPlatform.Utilities.UnitTests { using System; using System.Xml; - using System.Xml.XPath; - using Microsoft.TestPlatform.Utilities.Tests; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using OMResources = Microsoft.VisualStudio.TestPlatform.ObjectModel.Resources.CommonResources; using Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities; using Microsoft.VisualStudio.TestPlatform.Utilities; using Microsoft.VisualStudio.TestTools.UnitTesting; using MSTest.TestFramework.AssertExtensions; - using System.IO; using System.Collections.Generic; using System.Linq; - using UtilitiesResources = Microsoft.VisualStudio.TestPlatform.Utilities.Resources.Resources; using System.Globalization; using System.Text; diff --git a/test/Microsoft.TestPlatform.Utilities.UnitTests/MSTestSettingsUtilitiesTests.cs b/test/Microsoft.TestPlatform.Utilities.UnitTests/MSTestSettingsUtilitiesTests.cs index e1917a87e0..4e654b2a85 100644 --- a/test/Microsoft.TestPlatform.Utilities.UnitTests/MSTestSettingsUtilitiesTests.cs +++ b/test/Microsoft.TestPlatform.Utilities.UnitTests/MSTestSettingsUtilitiesTests.cs @@ -4,9 +4,7 @@ namespace Microsoft.TestPlatform.Utilities.Tests { using System; - using System.IO; using System.Xml; - using System.Xml.XPath; using Microsoft.VisualStudio.TestPlatform.Utilities; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/Microsoft.TestPlatform.Utilities.UnitTests/Properties/AssemblyInfo.cs b/test/Microsoft.TestPlatform.Utilities.UnitTests/Properties/AssemblyInfo.cs index fe43667c6e..dc4d031c99 100644 --- a/test/Microsoft.TestPlatform.Utilities.UnitTests/Properties/AssemblyInfo.cs +++ b/test/Microsoft.TestPlatform.Utilities.UnitTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/SettingsMigrator.UnitTests/MigratorTests.cs b/test/SettingsMigrator.UnitTests/MigratorTests.cs index a967c57e92..4fe25372a7 100644 --- a/test/SettingsMigrator.UnitTests/MigratorTests.cs +++ b/test/SettingsMigrator.UnitTests/MigratorTests.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.SettingsMigrator.UnitTests { using System.IO; using System.Xml; - using Microsoft.VisualStudio.TestPlatform.SettingsMigrator; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] diff --git a/test/SettingsMigrator.UnitTests/PathResolverTests.cs b/test/SettingsMigrator.UnitTests/PathResolverTests.cs index 47b183c1de..9acd635236 100644 --- a/test/SettingsMigrator.UnitTests/PathResolverTests.cs +++ b/test/SettingsMigrator.UnitTests/PathResolverTests.cs @@ -6,8 +6,6 @@ namespace Microsoft.VisualStudio.TestPlatform.SettingsMigrator.UnitTests using System; using System.Globalization; using System.IO; - using System.Xml; - using Microsoft.VisualStudio.TestPlatform.SettingsMigrator; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] diff --git a/test/SettingsMigrator.UnitTests/ProgramTests.cs b/test/SettingsMigrator.UnitTests/ProgramTests.cs index 6c8209df45..6ce0729e71 100644 --- a/test/SettingsMigrator.UnitTests/ProgramTests.cs +++ b/test/SettingsMigrator.UnitTests/ProgramTests.cs @@ -3,9 +3,6 @@ namespace Microsoft.VisualStudio.TestPlatform.SettingsMigrator.UnitTests { - using System.IO; - using System.Xml; - using Microsoft.VisualStudio.TestPlatform.SettingsMigrator; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] diff --git a/test/TranslationLayer.UnitTests/ConsoleParametersTests.cs b/test/TranslationLayer.UnitTests/ConsoleParametersTests.cs index a299d5c925..f99796731c 100644 --- a/test/TranslationLayer.UnitTests/ConsoleParametersTests.cs +++ b/test/TranslationLayer.UnitTests/ConsoleParametersTests.cs @@ -5,7 +5,6 @@ namespace Microsoft.TestPlatform.VsTestConsole.TranslationLayer.UnitTests { using System.Diagnostics; - using Microsoft.TestPlatform.VsTestConsole.TranslationLayer; using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers; using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/TranslationLayer.UnitTests/Properties/AssemblyInfo.cs b/test/TranslationLayer.UnitTests/Properties/AssemblyInfo.cs index b3d785b5e1..ae5b7d41b5 100644 --- a/test/TranslationLayer.UnitTests/Properties/AssemblyInfo.cs +++ b/test/TranslationLayer.UnitTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/datacollector.UnitTests/DataCollectionAttachmentManagerTests.cs b/test/datacollector.UnitTests/DataCollectionAttachmentManagerTests.cs index bbf0b91c00..3a5ead9182 100644 --- a/test/datacollector.UnitTests/DataCollectionAttachmentManagerTests.cs +++ b/test/datacollector.UnitTests/DataCollectionAttachmentManagerTests.cs @@ -8,7 +8,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.DataCollector.UnitTests using System.IO; using System.Threading; - using Microsoft.VisualStudio.TestPlatform.Common.DataCollector; using Microsoft.VisualStudio.TestPlatform.Common.DataCollector.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection; using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; diff --git a/test/datacollector.UnitTests/DataCollectionEnvironmentVariableTests.cs b/test/datacollector.UnitTests/DataCollectionEnvironmentVariableTests.cs index 9c4ab7ba15..c3013007fa 100644 --- a/test/datacollector.UnitTests/DataCollectionEnvironmentVariableTests.cs +++ b/test/datacollector.UnitTests/DataCollectionEnvironmentVariableTests.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.DataCollector.UnitTests { using System; using System.Collections.Generic; - using Microsoft.VisualStudio.TestPlatform.Common.DataCollector; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/datacollector.UnitTests/DataCollectionManagerTests.cs b/test/datacollector.UnitTests/DataCollectionManagerTests.cs index fa2d513285..41e6486a8b 100644 --- a/test/datacollector.UnitTests/DataCollectionManagerTests.cs +++ b/test/datacollector.UnitTests/DataCollectionManagerTests.cs @@ -8,7 +8,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.DataCollector.UnitTests using System.Reflection; using System.Xml; - using Microsoft.VisualStudio.TestPlatform.Common.DataCollector; using Microsoft.VisualStudio.TestPlatform.Common.DataCollector.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection; diff --git a/test/datacollector.UnitTests/DataCollectorConfigTests.cs b/test/datacollector.UnitTests/DataCollectorConfigTests.cs index bea8e1cc79..17b6e466df 100644 --- a/test/datacollector.UnitTests/DataCollectorConfigTests.cs +++ b/test/datacollector.UnitTests/DataCollectorConfigTests.cs @@ -4,10 +4,8 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.DataCollector.UnitTests { using System; - using System.Globalization; using Microsoft.VisualStudio.TestTools.UnitTesting; - using MSTest.TestFramework.AssertExtensions; [TestClass] public class DataCollectorConfigTests diff --git a/test/datacollector.UnitTests/DummyDataCollectors.cs b/test/datacollector.UnitTests/DummyDataCollectors.cs index a54e25218c..e1b9d063aa 100644 --- a/test/datacollector.UnitTests/DummyDataCollectors.cs +++ b/test/datacollector.UnitTests/DummyDataCollectors.cs @@ -3,13 +3,10 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.DataCollector.UnitTests { - using System; using System.Collections.Generic; - using System.IO; using System.Xml; using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection; - using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollector; [DataCollectorFriendlyName("CustomDataCollector")] [DataCollectorTypeUri("my://custom/datacollector")] diff --git a/test/datacollector.UnitTests/Properties/AssemblyInfo.cs b/test/datacollector.UnitTests/Properties/AssemblyInfo.cs index f0ec08dd62..fb892d21e1 100644 --- a/test/datacollector.UnitTests/Properties/AssemblyInfo.cs +++ b/test/datacollector.UnitTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/datacollector.UnitTests/TestPlatformDataCollectionEventsTests.cs b/test/datacollector.UnitTests/TestPlatformDataCollectionEventsTests.cs index e10e84e1ba..1ee6ba7980 100644 --- a/test/datacollector.UnitTests/TestPlatformDataCollectionEventsTests.cs +++ b/test/datacollector.UnitTests/TestPlatformDataCollectionEventsTests.cs @@ -5,7 +5,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.DataCollector.UnitTests { using System; using System.Collections.Generic; - using Microsoft.VisualStudio.TestPlatform.Common.DataCollector; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/datacollector.UnitTests/TestPlatformDataCollectionSinkTests.cs b/test/datacollector.UnitTests/TestPlatformDataCollectionSinkTests.cs index ba0a311879..204c787f3e 100644 --- a/test/datacollector.UnitTests/TestPlatformDataCollectionSinkTests.cs +++ b/test/datacollector.UnitTests/TestPlatformDataCollectionSinkTests.cs @@ -7,7 +7,6 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.DataCollector.UnitTests using System.ComponentModel; using System.IO; - using Microsoft.VisualStudio.TestPlatform.Common.DataCollector; using Microsoft.VisualStudio.TestPlatform.Common.DataCollector.Interfaces; using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/test/testhost.UnitTests/DefaultEngineInvokerTests.cs b/test/testhost.UnitTests/DefaultEngineInvokerTests.cs index 16ed30475f..0c129ec34a 100644 --- a/test/testhost.UnitTests/DefaultEngineInvokerTests.cs +++ b/test/testhost.UnitTests/DefaultEngineInvokerTests.cs @@ -6,7 +6,6 @@ namespace testhost.UnitTests using System; using System.Collections.Generic; using System.Diagnostics; - using System.Globalization; using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces; using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Helpers; using Microsoft.VisualStudio.TestPlatform.ObjectModel; diff --git a/test/testhost.UnitTests/Properties/AssemblyInfo.cs b/test/testhost.UnitTests/Properties/AssemblyInfo.cs index 2a468a65e9..d62a61680b 100644 --- a/test/testhost.UnitTests/Properties/AssemblyInfo.cs +++ b/test/testhost.UnitTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/test/testhost.UnitTests/UnitTestClientTests.cs b/test/testhost.UnitTests/UnitTestClientTests.cs index 3e161cb983..840e526daa 100644 --- a/test/testhost.UnitTests/UnitTestClientTests.cs +++ b/test/testhost.UnitTests/UnitTestClientTests.cs @@ -4,7 +4,6 @@ namespace Microsoft.VisualStudio.TestPlatform.TestExecutor.Tests { using Microsoft.VisualStudio.TestTools.UnitTesting; - using Microsoft.VisualStudio.TestPlatform.TestExecutor; [TestClass] public class UnitTestClientTests diff --git a/test/vstest.console.UnitTests/CommandLine/CommandLineOptionsTests.cs b/test/vstest.console.UnitTests/CommandLine/CommandLineOptionsTests.cs index e35d8919f1..224ef35f92 100644 --- a/test/vstest.console.UnitTests/CommandLine/CommandLineOptionsTests.cs +++ b/test/vstest.console.UnitTests/CommandLine/CommandLineOptionsTests.cs @@ -11,7 +11,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.UnitTests.CommandLine using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System.IO; - using MSTest.TestFramework.AssertExtensions; using vstest.console.Internal; using Microsoft.Extensions.FileSystemGlobbing; diff --git a/test/vstest.console.UnitTests/CommandLine/InferHelperTests.cs b/test/vstest.console.UnitTests/CommandLine/InferHelperTests.cs index 900a5e2593..8534d33c61 100644 --- a/test/vstest.console.UnitTests/CommandLine/InferHelperTests.cs +++ b/test/vstest.console.UnitTests/CommandLine/InferHelperTests.cs @@ -9,7 +9,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.UnitTests.CommandLine { using Microsoft.VisualStudio.TestPlatform.CommandLineUtilities; - using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; diff --git a/test/vstest.console.UnitTests/CommandLine/TestRunResultAggregatorTests.cs b/test/vstest.console.UnitTests/CommandLine/TestRunResultAggregatorTests.cs index 691d79025a..2b7c241851 100644 --- a/test/vstest.console.UnitTests/CommandLine/TestRunResultAggregatorTests.cs +++ b/test/vstest.console.UnitTests/CommandLine/TestRunResultAggregatorTests.cs @@ -7,10 +7,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.UnitTests.CommandLine using System.Collections.Generic; using System.Runtime.Serialization; - using Client.Execution; - - using CrossPlatEngine.Execution; - using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; diff --git a/test/vstest.console.UnitTests/Processors/CLIRunSettingsArgumentProcessorTests.cs b/test/vstest.console.UnitTests/Processors/CLIRunSettingsArgumentProcessorTests.cs index 7fe78808f1..48ec148c25 100644 --- a/test/vstest.console.UnitTests/Processors/CLIRunSettingsArgumentProcessorTests.cs +++ b/test/vstest.console.UnitTests/Processors/CLIRunSettingsArgumentProcessorTests.cs @@ -5,8 +5,6 @@ namespace vstest.console.UnitTests.Processors { using System; using System.Collections.Generic; - using System.Text; - using System.Xml; using Microsoft.VisualStudio.TestPlatform.CommandLine; using Microsoft.VisualStudio.TestPlatform.CommandLine.Processors; diff --git a/test/vstest.console.UnitTests/Processors/PortArgumentProcessorTests.cs b/test/vstest.console.UnitTests/Processors/PortArgumentProcessorTests.cs index 05f9212b3e..50181f7e6d 100644 --- a/test/vstest.console.UnitTests/Processors/PortArgumentProcessorTests.cs +++ b/test/vstest.console.UnitTests/Processors/PortArgumentProcessorTests.cs @@ -6,7 +6,6 @@ namespace Microsoft.VisualStudio.TestPlatform.CommandLine.UnitTests.Processors using Microsoft.VisualStudio.TestPlatform.Client.DesignMode; using Microsoft.VisualStudio.TestPlatform.Client.RequestHelper; using Microsoft.VisualStudio.TestPlatform.CommandLine.Processors; - using Microsoft.VisualStudio.TestPlatform.CommandLine.TestPlatformHelpers; using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.Interfaces; using Moq; diff --git a/test/vstest.console.UnitTests/Properties/AssemblyInfo.cs b/test/vstest.console.UnitTests/Properties/AssemblyInfo.cs index 24d68018cd..283c5da113 100644 --- a/test/vstest.console.UnitTests/Properties/AssemblyInfo.cs +++ b/test/vstest.console.UnitTests/Properties/AssemblyInfo.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following