From d4368cb0b3c62fad73fe1ea5489edbe2e80de736 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Wed, 22 Apr 2026 08:47:49 +0000
Subject: [PATCH 1/3] Initial plan
From 3d6a02dd47b4de25b9121cadce43b5cf8d0a61d2 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Wed, 22 Apr 2026 08:57:51 +0000
Subject: [PATCH 2/3] Fix CommandLineOptionIsReserved placeholder and tests
Agent-Logs-Url: https://github.com/microsoft/testfx/sessions/8614ece4-f80d-4fb5-b412-b5f4974c66ea
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
---
.../Resources/PlatformResources.resx | 4 ++--
.../Resources/xlf/PlatformResources.cs.xlf | 4 ++--
.../Resources/xlf/PlatformResources.de.xlf | 4 ++--
.../Resources/xlf/PlatformResources.es.xlf | 4 ++--
.../Resources/xlf/PlatformResources.fr.xlf | 4 ++--
.../Resources/xlf/PlatformResources.it.xlf | 4 ++--
.../Resources/xlf/PlatformResources.ja.xlf | 4 ++--
.../Resources/xlf/PlatformResources.ko.xlf | 4 ++--
.../Resources/xlf/PlatformResources.pl.xlf | 4 ++--
.../Resources/xlf/PlatformResources.pt-BR.xlf | 4 ++--
.../Resources/xlf/PlatformResources.ru.xlf | 4 ++--
.../Resources/xlf/PlatformResources.tr.xlf | 4 ++--
.../Resources/xlf/PlatformResources.zh-Hans.xlf | 4 ++--
.../Resources/xlf/PlatformResources.zh-Hant.xlf | 4 ++--
.../CommandLine/CommandLineHandlerTests.cs | 6 ++++--
15 files changed, 32 insertions(+), 30 deletions(-)
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..acdb5cc7b3 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,9 @@ 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.Contains("Option '--help' is reserved and cannot be used by providers:", result.ErrorMessage);
+ Assert.Contains("Microsoft Testing Platform command line provider", result.ErrorMessage);
+ Assert.Contains("Provider2", result.ErrorMessage);
}
[TestMethod]
From 36c87b45baeb89383c20ed33ed831e34e5b69384 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Wed, 22 Apr 2026 11:11:35 +0000
Subject: [PATCH 3/3] Use exact assertion for reserved options provider message
Agent-Logs-Url: https://github.com/microsoft/testfx/sessions/a29ba3ca-cdea-458d-b06e-bedaf5608c6d
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
---
.../CommandLine/CommandLineHandlerTests.cs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/test/UnitTests/Microsoft.Testing.Platform.UnitTests/CommandLine/CommandLineHandlerTests.cs b/test/UnitTests/Microsoft.Testing.Platform.UnitTests/CommandLine/CommandLineHandlerTests.cs
index acdb5cc7b3..84a9583aff 100644
--- a/test/UnitTests/Microsoft.Testing.Platform.UnitTests/CommandLine/CommandLineHandlerTests.cs
+++ b/test/UnitTests/Microsoft.Testing.Platform.UnitTests/CommandLine/CommandLineHandlerTests.cs
@@ -271,9 +271,7 @@ public async Task ParseAndValidateAsync_MultipleReservedOptionsFromDifferentProv
// Assert
Assert.IsFalse(result.IsValid);
- Assert.Contains("Option '--help' is reserved and cannot be used by providers:", result.ErrorMessage);
- Assert.Contains("Microsoft Testing Platform command line provider", result.ErrorMessage);
- Assert.Contains("Provider2", result.ErrorMessage);
+ Assert.AreEqual("Option '--help' is reserved and cannot be used by providers: 'Microsoft Testing Platform command line provider', 'Provider2'", result.ErrorMessage);
}
[TestMethod]