2 types derived from TestPlatformException
Microsoft.VisualStudio.TestPlatform.Common (1)
Exceptions\InvalidLoggerException.cs (1)
10public class InvalidLoggerException : TestPlatformException
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
ExceptionConverter.cs (1)
100public class ProcessExitedException : TestPlatformException
25 instantiations of TestPlatformException
datacollector (1)
DataCollectorMain.cs (1)
171throw new TestPlatformException(
datacollector.arm64 (1)
src\vstest\src\datacollector\DataCollectorMain.cs (1)
171throw new TestPlatformException(
Microsoft.TestPlatform.CommunicationUtilities (4)
DataCollectionRequestHandler.cs (1)
338throw new TestPlatformException(
TestRequestSender.cs (3)
259throw new TestPlatformException(CommonResources.VersionCheckFailed); 263throw new TestPlatformException(string.Format( 288throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, CommonResources.VersionCheckTimedout, timeout, EnvironmentHelper.VstestConnectionTimeout));
Microsoft.TestPlatform.CrossPlatEngine (6)
Client\ProxyOperationManager.cs (3)
252throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.FailedToLaunchTestHost, ex.ToString())); 524throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.TestHostExitedWithError, string.Join("', '", sources), _testHostProcessStdError)); 561throw new TestPlatformException(errorMsg);
DataCollection\ProxyDataCollectionManager.cs (1)
250throw new TestPlatformException(
TestEngine.cs (2)
657throw new TestPlatformException(Resources.Resources.NoTestHostProviderFound); 702throw new TestPlatformException(stringBuilder.ToString());
Microsoft.TestPlatform.TestHostRuntimeProvider (4)
Hosting\DotnetTestHostManager.cs (4)
463throw new TestPlatformException(message); 504throw new TestPlatformException(message); 667throw new TestPlatformException($"Invalid target architecture '{targetArchitecture}'"); 681_ => throw new TestPlatformException($"Invalid target architecture '{targetArchitecture}'"),
Microsoft.VisualStudio.TestPlatform.Client (1)
DesignMode\DesignModeClient.cs (1)
347return ackPayload.HostProcessId > 0 ? ackPayload.HostProcessId : throw new TestPlatformException(ackPayload.ErrorMessage);
Microsoft.VisualStudio.TestPlatform.Common (3)
ExtensionFramework\VSExtensionManager.cs (2)
65throw new TestPlatformException(message, ex); 81throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.VSInstallationNotFound));
Utilities\CancellationTokenExtensions.cs (1)
20throw new TestPlatformException(Resources.Resources.CancellationRequested);
testhost (1)
src\vstest\src\testhost.x86\DefaultEngineInvoker.cs (1)
200throw new TestPlatformException(
testhost.arm64 (1)
src\vstest\src\testhost.x86\DefaultEngineInvoker.cs (1)
200throw new TestPlatformException(
testhost.x86 (1)
DefaultEngineInvoker.cs (1)
200throw new TestPlatformException(
vstest.console (1)
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
225throw new TestPlatformException("DiscoveredTestsEventArgs cannot be null.");
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
225throw new TestPlatformException("DiscoveredTestsEventArgs cannot be null.");
8 references to TestPlatformException
Microsoft.TestPlatform.CrossPlatEngine (1)
Client\ProxyExecutionManager.cs (1)
306var errorMessage = exception is TestPlatformException ? exception.Message : exception.ToString();
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
650catch (TestPlatformException e)
vstest.console (3)
CommandLine\Executor.cs (3)
288if (ex is CommandLineException or TestPlatformException or SettingsException) 396if (ex is CommandLineException or TestPlatformException or SettingsException or InvalidOperationException) 403if (ex is TestPlatformException &&
vstest.console.arm64 (3)
src\vstest\src\vstest.console\CommandLine\Executor.cs (3)
288if (ex is CommandLineException or TestPlatformException or SettingsException) 396if (ex is CommandLineException or TestPlatformException or SettingsException or InvalidOperationException) 403if (ex is TestPlatformException &&