diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.resx b/src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.resx index aef20bc712..3a423b2c31 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.resx +++ b/src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.resx @@ -317,7 +317,7 @@ You can fix the previous option clash by overriding the option name using the configuration file - Option '--{0}' is reserved and cannot be used by providers: '{0}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' Unexpected argument {0} @@ -742,4 +742,4 @@ Takes one argument as string in the format <value>[h|m|s] where 'value' is Waiting for debugger to attach (TESTINGPLATFORM_WAIT_ATTACH_DEBUGGER=1) is not supported in browser environments. - \ No newline at end of file + diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.cs.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.cs.xlf index 92881bf3e3..63c030d07c 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.cs.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.cs.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - Možnost --{0} je vyhrazená a nelze ji použít zprostředkovateli: {0} + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.de.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.de.xlf index d41c447a21..64ef505e42 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.de.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.de.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - Die Option "--{0}" ist reserviert und kann nicht von Anbietern verwendet werden: "{0}" + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.es.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.es.xlf index c7cd1b49a7..c2b8a331f8 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.es.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.es.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - La opción “--{0}” está reservada y los proveedores no la pueden usar: “{0}” + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.fr.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.fr.xlf index 4201885cfb..88632f2521 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.fr.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.fr.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - L’option « --{0} » est réservée et ne peut pas être utilisée par les fournisseurs : « {0} » + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.it.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.it.xlf index 908029aa34..82e90bf9fa 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.it.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.it.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - L'opzione '--{0}' è riservata e non può essere usata dai provider: '{0}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ja.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ja.xlf index 94420e28d5..f997fdc549 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ja.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ja.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - オプション '--{0}' は予約されており、プロバイダーでは使用できません: '{0}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ko.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ko.xlf index 83ec530bc6..22afdc96d8 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ko.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ko.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - '--{0}' 옵션은 예약되어 있으므로 공급자 '{0}'이(가) 사용할 수 없습니다. + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pl.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pl.xlf index e86aa5d3d6..63a94177e4 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pl.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pl.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - Opcja „--{0}” jest zastrzeżona i nie może być używana przez dostawców: „{0}” + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pt-BR.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pt-BR.xlf index 022d5dff33..89587ab423 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pt-BR.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pt-BR.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - A opção '--{0}' está reservada e não pode ser usada pelos provedores: '{0}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ru.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ru.xlf index aa638e4d9c..ad2551df82 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ru.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ru.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - Параметр "--{0}" зарезервирован и не может использоваться поставщиками: "{0}" + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.tr.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.tr.xlf index 4c53972e7c..78de387157 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.tr.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.tr.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - '--{0}' seçeneği ayrılmıştır ve şu sağlayıcılar tarafından kullanılamaz: '{0}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hans.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hans.xlf index 681ba12cd8..59fb68e6cc 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hans.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hans.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - 选项“--{0}”是保留的,提供程序不能使用:“{0}” + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hant.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hant.xlf index 3c50b6d540..510ab6c30f 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hant.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hant.xlf @@ -118,8 +118,8 @@ - Option '--{0}' is reserved and cannot be used by providers: '{0}' - 選項 '--{0}' 已保留,無法供提供者 '{0}' 使用 + Option '--{0}' is reserved and cannot be used by providers: '{1}' + Option '--{0}' is reserved and cannot be used by providers: '{1}' diff --git a/test/UnitTests/Microsoft.Testing.Platform.UnitTests/CommandLine/CommandLineHandlerTests.cs b/test/UnitTests/Microsoft.Testing.Platform.UnitTests/CommandLine/CommandLineHandlerTests.cs index e4d597437f..84a9583aff 100644 --- a/test/UnitTests/Microsoft.Testing.Platform.UnitTests/CommandLine/CommandLineHandlerTests.cs +++ b/test/UnitTests/Microsoft.Testing.Platform.UnitTests/CommandLine/CommandLineHandlerTests.cs @@ -187,7 +187,7 @@ public async Task ParseAndValidateAsync_ReservedOptions_ReturnsFalse() // Assert Assert.IsFalse(result.IsValid); - Assert.AreEqual("Option '--help' is reserved and cannot be used by providers: 'help'", result.ErrorMessage); + Assert.AreEqual("Option '--help' is reserved and cannot be used by providers: 'Microsoft Testing Platform command line provider'", result.ErrorMessage); } [TestMethod] @@ -271,7 +271,7 @@ public async Task ParseAndValidateAsync_MultipleReservedOptionsFromDifferentProv // Assert Assert.IsFalse(result.IsValid); - Assert.Contains("Option '--help' is reserved and cannot be used by providers: 'help'", result.ErrorMessage); + Assert.AreEqual("Option '--help' is reserved and cannot be used by providers: 'Microsoft Testing Platform command line provider', 'Provider2'", result.ErrorMessage); } [TestMethod]