diff --git a/src/Microsoft.TestPlatform.Client/DesignMode/DesignModeClient.cs b/src/Microsoft.TestPlatform.Client/DesignMode/DesignModeClient.cs
index ab2c6f31f8..fafb7058e8 100644
--- a/src/Microsoft.TestPlatform.Client/DesignMode/DesignModeClient.cs
+++ b/src/Microsoft.TestPlatform.Client/DesignMode/DesignModeClient.cs
@@ -10,6 +10,7 @@ namespace Microsoft.VisualStudio.TestPlatform.Client.DesignMode
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestPlatform.Client.RequestHelper;
+ using Microsoft.VisualStudio.TestPlatform.Common.Utilities;
using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities;
using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces;
using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel;
@@ -262,7 +263,7 @@ public int LaunchCustomHost(TestProcessStartInfo testProcessStartInfo, Cancellat
// Since the IDEs own user-UI-experience here, TP will let the custom host launch as much time as IDEs define it for their users
WaitHandle.WaitAny(new WaitHandle[] { waitHandle, cancellationToken.WaitHandle });
- cancellationToken.ThrowIfCancellationRequested();
+ cancellationToken.ThrowTestPlatformExceptionIfCancellationRequested();
this.onAckMessageReceived = null;
diff --git a/src/Microsoft.TestPlatform.Common/Resources/Resources.Designer.cs b/src/Microsoft.TestPlatform.Common/Resources/Resources.Designer.cs
index 991e4f2a8c..8dfb3feae7 100644
--- a/src/Microsoft.TestPlatform.Common/Resources/Resources.Designer.cs
+++ b/src/Microsoft.TestPlatform.Common/Resources/Resources.Designer.cs
@@ -20,7 +20,7 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.Resources {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
@@ -62,7 +62,16 @@ internal Resources() {
}
///
- /// Looks up a localized string similar to Diagnostic data adapter message: {0}.
+ /// Looks up a localized string similar to Cancelling the operation as requested..
+ ///
+ internal static string CancellationRequested {
+ get {
+ return ResourceManager.GetString("CancellationRequested", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Data collection : {0}.
///
internal static string DataCollectionMessageFormat {
get {
@@ -71,7 +80,7 @@ internal static string DataCollectionMessageFormat {
}
///
- /// Looks up a localized string similar to Diagnostic data adapter '{0}' failed to provide intialization information. Error: {1}.
+ /// Looks up a localized string similar to Data collector '{0}' failed to provide initialization information. Error: {1}.
///
internal static string DataCollectorErrorOnGetVariable {
get {
@@ -80,7 +89,7 @@ internal static string DataCollectorErrorOnGetVariable {
}
///
- /// Looks up a localized string similar to The diagnostic data adapter '{0}' threw an exception during type loading, construction, or initialization: {1}..
+ /// Looks up a localized string similar to Data collector '{0}' threw an exception during type loading, construction, or initialization: {1}..
///
internal static string DataCollectorInitializationError {
get {
@@ -89,7 +98,7 @@ internal static string DataCollectorInitializationError {
}
///
- /// Looks up a localized string similar to Diagnostic data adapter ('{0}') message: {1}..
+ /// Looks up a localized string similar to Data collector '{0}' message: {1}..
///
internal static string DataCollectorMessageFormat {
get {
@@ -98,7 +107,7 @@ internal static string DataCollectorMessageFormat {
}
///
- /// Looks up a localized string similar to Could not find diagnostic data adapter of type '{0}' and Uri '{1}'.
+ /// Looks up a localized string similar to Could not find data collector '{0}'.
///
internal static string DataCollectorNotFound {
get {
@@ -107,7 +116,7 @@ internal static string DataCollectorNotFound {
}
///
- /// Looks up a localized string similar to The diagnostic data adapter '{0}' requested environment variable '{1}' with value '{2}' to be set in test execution environment, but another diagnostic data adapter '{3}' has already requested same environment variable with different value '{4}'..
+ /// Looks up a localized string similar to The data collector '{0}' requested environment variable '{1}' with value '{2}' to be set in test execution environment, but another data collector '{3}' has already requested same environment variable with different value '{4}'..
///
internal static string DataCollectorRequestedDuplicateEnvironmentVariable {
get {
@@ -134,7 +143,7 @@ internal static string DuplicateSettingsName {
}
///
- /// Looks up a localized string similar to Duplicated run settings section named '{0}' found. Ignoring the duplicate settings..
+ /// Looks up a localized string similar to Duplicate run settings section named '{0}' found. Ignoring the duplicate settings..
///
internal static string DuplicateSettingsProvided {
get {
@@ -150,7 +159,7 @@ internal static string EmptyParenthesis {
return ResourceManager.GetString("EmptyParenthesis", resourceCulture);
}
}
-
+
///
/// Looks up a localized string similar to Failed to find the list of installed unit test extensions. Reason: {0}.
///
@@ -159,20 +168,18 @@ internal static string FailedToFindInstalledUnitTestExtensions {
return ResourceManager.GetString("FailedToFindInstalledUnitTestExtensions", resourceCulture);
}
}
-
+
///
/// Looks up a localized string similar to An error occured while creating Fast filter..
///
- internal static string FastFilterException
- {
- get
- {
+ internal static string FastFilterException {
+ get {
return ResourceManager.GetString("FastFilterException", resourceCulture);
}
}
-
+
///
- /// Looks up a localized string similar to There are multiple configurations that have diagnostic data adapter type '{0}' or Uri '{1}'. Duplicate configurations will be ignored in the test run..
+ /// Looks up a localized string similar to There are multiple configurations that have data collector FriendlyName as '{0}'. Duplicate configurations will be ignored in the test run..
///
internal static string IgnoredDuplicateConfiguration {
get {
@@ -206,7 +213,7 @@ internal static string InvalidOperator {
return ResourceManager.GetString("InvalidOperator", resourceCulture);
}
}
-
+
///
/// Looks up a localized string similar to Exception occurred while initializing logger with {0}: '{1}'. The logger will not be used. Exception: {2}.
///
@@ -215,7 +222,7 @@ internal static string LoggerInitializationError {
return ResourceManager.GetString("LoggerInitializationError", resourceCulture);
}
}
-
+
///
/// Looks up a localized string similar to Could not find a test logger with AssemblyQualifiedName, URI or FriendlyName '{0}'..
///
@@ -224,18 +231,16 @@ internal static string LoggerNotFound {
return ResourceManager.GetString("LoggerNotFound", resourceCulture);
}
}
-
+
///
/// Looks up a localized string similar to The Test Logger URI '{0}' is not valid. The Test Logger will be ignored..
///
- public static string LoggerUriInvalid
- {
- get
- {
+ internal static string LoggerUriInvalid {
+ get {
return ResourceManager.GetString("LoggerUriInvalid", resourceCulture);
}
}
-
+
///
/// Looks up a localized string similar to Error: Missing ')'.
///
@@ -273,7 +278,7 @@ internal static string MissingOperator {
}
///
- /// Looks up a localized string similar to Diagnostic data adapter caught an exception of type '{0}': '{1}'. More details: {2}..
+ /// Looks up a localized string similar to Data collector caught an exception of type '{0}': '{1}'. More details: {2}..
///
internal static string ReportDataCollectorException {
get {
@@ -334,7 +339,7 @@ internal static string TestCaseFilterFormatException {
return ResourceManager.GetString("TestCaseFilterFormatException", resourceCulture);
}
}
-
+
///
/// Looks up a localized string similar to This option works only with vstest.console.exe installed as part of Visual Studio..
///
@@ -343,7 +348,7 @@ internal static string VSInstallationNotFound {
return ResourceManager.GetString("VSInstallationNotFound", resourceCulture);
}
}
-
+
///
/// Looks up a localized string similar to Types deriving from the data collection context cannot be used for sending data and messages. The DataCollectionContext used for sending data and messages must come from one of the events raised to the data collector..
///
diff --git a/src/Microsoft.TestPlatform.Common/Resources/Resources.resx b/src/Microsoft.TestPlatform.Common/Resources/Resources.resx
index 2a6bf42bc4..450bf809c0 100644
--- a/src/Microsoft.TestPlatform.Common/Resources/Resources.resx
+++ b/src/Microsoft.TestPlatform.Common/Resources/Resources.resx
@@ -117,6 +117,9 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Cancelling the operation as requested.
+
Data collection : {0}
diff --git a/src/Microsoft.TestPlatform.Common/Resources/xlf/Resources.cs.xlf b/src/Microsoft.TestPlatform.Common/Resources/xlf/Resources.cs.xlf
index 153393ba37..2306479745 100644
--- a/src/Microsoft.TestPlatform.Common/Resources/xlf/Resources.cs.xlf
+++ b/src/Microsoft.TestPlatform.Common/Resources/xlf/Resources.cs.xlf
@@ -264,6 +264,11 @@
Při vytváření rychlého filtru došlo k chybě.
+
+
+ Cancelling the operation as requested.
+
+