|
3 | 3 |
|
4 | 4 | using System; |
5 | 5 | using System.Collections.Generic; |
6 | | -using System.Globalization; |
7 | 6 | using System.IO; |
8 | 7 | using System.Linq; |
9 | 8 | using System.Reflection; |
|
18 | 17 | using Microsoft.VisualStudio.TestPlatform.ObjectModel; |
19 | 18 | using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; |
20 | 19 | using Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine; |
21 | | -using Microsoft.VisualStudio.TestPlatform.ObjectModel.Host; |
22 | 20 | using Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities; |
23 | 21 | using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions; |
24 | 22 | using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers; |
25 | 23 | using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces; |
26 | 24 |
|
27 | | -using ClientResources = Microsoft.VisualStudio.TestPlatform.Client.Resources.Resources; |
28 | | - |
29 | 25 | namespace Microsoft.VisualStudio.TestPlatform.Client; |
30 | 26 |
|
31 | 27 | /// <summary> |
@@ -191,18 +187,6 @@ public void ClearExtensions() |
191 | 187 | _testEngine.GetExtensionManager().ClearExtensions(); |
192 | 188 | } |
193 | 189 |
|
194 | | - private static void ThrowExceptionIfTestHostManagerIsNull( |
195 | | - ITestRuntimeProvider? testHostManager, |
196 | | - string settingsXml) |
197 | | - { |
198 | | - if (testHostManager == null) |
199 | | - { |
200 | | - EqtTrace.Error($"{nameof(TestPlatform)}.{nameof(ThrowExceptionIfTestHostManagerIsNull)}: No suitable testHostProvider found for runsettings: {settingsXml}"); |
201 | | - throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, ClientResources.NoTestHostProviderFound)); |
202 | | - } |
203 | | - } |
204 | | - |
205 | | - |
206 | 190 | private void AddExtensionAssemblies(string? runSettings, TestAdapterLoadingStrategy adapterLoadingStrategy) |
207 | 191 | { |
208 | 192 | IEnumerable<string> customTestAdaptersPaths = RunSettingsUtilities.GetTestAdaptersPaths(runSettings); |
|
0 commit comments