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
28 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 (5)
DataCollectionRequestHandler.cs (1)
351throw new TestPlatformException(
TestRequestSender.cs (4)
259throw new TestPlatformException(CommonResources.VersionCheckFailed); 263throw new TestPlatformException(string.Format( 302throw new TestPlatformException(reason); 308throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, CommonResources.VersionCheckTimedout, timeout, EnvironmentHelper.VstestConnectionTimeout));
Microsoft.TestPlatform.CrossPlatEngine (6)
Client\ProxyOperationManager.cs (3)
254throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.FailedToLaunchTestHost, ex.ToString())); 526throw new TestPlatformException(string.Format(CultureInfo.CurrentCulture, CrossPlatEngineResources.TestHostExitedWithError, string.Join("', '", sources), BuildCrashErrorContext(_testHostProcessFileName, _testHostProcessStdError))); 567throw new TestPlatformException(errorMsg);
DataCollection\ProxyDataCollectionManager.cs (1)
250throw new TestPlatformException(
TestEngine.cs (2)
506throw new TestPlatformException(Resources.Resources.NoTestHostProviderFound); 551throw new TestPlatformException(stringBuilder.ToString());
Microsoft.TestPlatform.TestHostRuntimeProvider (6)
Hosting\DefaultTestHostManager.cs (1)
213throw new TestPlatformException(TestHostResources.NetFrameworkTestsNotSupportedOnNonWindows);
Hosting\DotnetTestHostManager.cs (5)
431throw new TestPlatformException(message); 483throw new TestPlatformException(message); 524throw new TestPlatformException(message); 686throw new TestPlatformException($"Invalid target architecture '{targetArchitecture}'"); 700_ => throw new TestPlatformException($"Invalid target architecture '{targetArchitecture}'"),
Microsoft.VisualStudio.TestPlatform.Client (1)
DesignMode\DesignModeClient.cs (1)
332return 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)
234throw new TestPlatformException("DiscoveredTestsEventArgs cannot be null.");
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
234throw new TestPlatformException("DiscoveredTestsEventArgs cannot be null.");
8 references to TestPlatformException
Microsoft.TestPlatform.CrossPlatEngine (1)
Client\ProxyExecutionManager.cs (1)
259var errorMessage = exception is TestPlatformException ? exception.Message : exception.ToString();
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
655catch (TestPlatformException e)
vstest.console (3)
CommandLine\Executor.cs (3)
315if (ex is CommandLineException or TestPlatformException or SettingsException) 423if (ex is CommandLineException or TestPlatformException or SettingsException or InvalidOperationException) 430if (ex is TestPlatformException &&
vstest.console.arm64 (3)
src\vstest\src\vstest.console\CommandLine\Executor.cs (3)
315if (ex is CommandLineException or TestPlatformException or SettingsException) 423if (ex is CommandLineException or TestPlatformException or SettingsException or InvalidOperationException) 430if (ex is TestPlatformException &&