From 7522462d5c251b04936d12d26881a9b39a6e1e58 Mon Sep 17 00:00:00 2001 From: dotnet bot Date: Sun, 9 Nov 2025 05:54:58 -0800 Subject: [PATCH 1/3] Localized file check-in by OneLocBuild Task: Build definition ID 1218: Build ID 2834747 --- src/Analyzers/MSTest.Analyzers/xlf/Resources.de.xlf | 6 +++--- src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf | 6 +++--- src/Analyzers/MSTest.Analyzers/xlf/Resources.it.xlf | 6 +++--- src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf | 6 +++--- src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hant.xlf | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.de.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.de.xlf index 5a331eb3c6..e19ae35063 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.de.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.de.xlf @@ -992,17 +992,17 @@ Der Typ, der diese Methoden deklariert, sollte auch die folgenden Regeln beachte Do not use asserts in catch blocks - Do not use asserts in catch blocks + Keine Asserts in Catch-Blöcken verwenden Do not use asserts in catch blocks because they may not fail the test if no exception is thrown - Do not use asserts in catch blocks because they may not fail the test if no exception is thrown + Keine Asserts in Catch-Blöcken verwenden, da der Test möglicherweise nicht fehlschlägt, wenn keine Ausnahme ausgelöst wird Using asserts in catch blocks is problematic because the test will pass even if no exception is thrown and the catch block is never executed. Use 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' or 'Assert.ThrowsExactlyAsync' to verify that an exception is thrown, and then make additional assertions on the caught exception without using the try-catch block. - Using asserts in catch blocks is problematic because the test will pass even if no exception is thrown and the catch block is never executed. Use 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' or 'Assert.ThrowsExactlyAsync' to verify that an exception is thrown, and then make additional assertions on the caught exception without using the try-catch block. + Die Verwendung von Asserts in Catch-Blöcken ist problematisch, da der Test auch dann erfolgreich ist, wenn keine Ausnahme ausgelöst wird und der Catch-Block nie ausgeführt wird. Verwenden Sie „Assert.Throws“, „Assert.ThrowsExactly“, „Assert.ThrowsAsync“ oder „Assert.ThrowsExactlyAsync“, um zu überprüfen, ob eine Ausnahme ausgelöst wird, und erstellen Sie dann zusätzliche Assertionen für die abgefangene Ausnahme, ohne den „try-catch“-Block zu verwenden. diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf index bf6b4b71e9..5df8892560 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf @@ -991,17 +991,17 @@ Le type doit être une classe Do not use asserts in catch blocks - Do not use asserts in catch blocks + N’utilisez pas d’assertions dans les blocs catch Do not use asserts in catch blocks because they may not fail the test if no exception is thrown - Do not use asserts in catch blocks because they may not fail the test if no exception is thrown + N’utilisez pas d’assertions dans les blocs catch, car elles peuvent ne pas faire échouer le test si aucune exception n’est levée Using asserts in catch blocks is problematic because the test will pass even if no exception is thrown and the catch block is never executed. Use 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' or 'Assert.ThrowsExactlyAsync' to verify that an exception is thrown, and then make additional assertions on the caught exception without using the try-catch block. - Using asserts in catch blocks is problematic because the test will pass even if no exception is thrown and the catch block is never executed. Use 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' or 'Assert.ThrowsExactlyAsync' to verify that an exception is thrown, and then make additional assertions on the caught exception without using the try-catch block. + L’utilisation d’assertions dans les blocs catch pose problème, car le test réussit même si aucune exception n’est levée et que le bloc catch n’est jamais exécuté. Utilisez « Assert.Throws », « Assert.ThrowsExactly », « Assert.ThrowsAsync » ou « Assert.ThrowsExactlyAsync » pour vérifier qu’une exception est levée, puis effectuez des assertions supplémentaires sur l’exception capturée sans utiliser le bloc try-catch. diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.it.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.it.xlf index 98b9f2dc46..e536fc735f 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.it.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.it.xlf @@ -991,17 +991,17 @@ Anche il tipo che dichiara questi metodi deve rispettare le regole seguenti: Do not use asserts in catch blocks - Do not use asserts in catch blocks + Non usare asserzioni nei blocchi catch Do not use asserts in catch blocks because they may not fail the test if no exception is thrown - Do not use asserts in catch blocks because they may not fail the test if no exception is thrown + Non usare asserzioni nei blocchi catch perché potrebbero non far fallire il test se non viene generata alcuna eccezione Using asserts in catch blocks is problematic because the test will pass even if no exception is thrown and the catch block is never executed. Use 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' or 'Assert.ThrowsExactlyAsync' to verify that an exception is thrown, and then make additional assertions on the caught exception without using the try-catch block. - Using asserts in catch blocks is problematic because the test will pass even if no exception is thrown and the catch block is never executed. Use 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' or 'Assert.ThrowsExactlyAsync' to verify that an exception is thrown, and then make additional assertions on the caught exception without using the try-catch block. + L'uso di asserzioni nei blocchi catch è problematico perché il test risulta superato anche se non viene generata alcuna eccezione e il blocco catch non viene mai eseguito. Utilizzare 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' o 'Assert.ThrowsExactlyAsync' per verificare che venga generata un'eccezione, quindi effettuare ulteriori asserzioni sull'eccezione rilevata senza usare il blocco try-catch. diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf index fdb2b4f9bb..a946b4772d 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf @@ -1003,17 +1003,17 @@ The type declaring these methods should also respect the following rules: Do not use asserts in catch blocks - Do not use asserts in catch blocks + Не используйте утверждения в блоках catch Do not use asserts in catch blocks because they may not fail the test if no exception is thrown - Do not use asserts in catch blocks because they may not fail the test if no exception is thrown + Не используйте утверждения в блоках catch, так как с ними тест может не завершаться сбоем, если не возникает исключение Using asserts in catch blocks is problematic because the test will pass even if no exception is thrown and the catch block is never executed. Use 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' or 'Assert.ThrowsExactlyAsync' to verify that an exception is thrown, and then make additional assertions on the caught exception without using the try-catch block. - Using asserts in catch blocks is problematic because the test will pass even if no exception is thrown and the catch block is never executed. Use 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' or 'Assert.ThrowsExactlyAsync' to verify that an exception is thrown, and then make additional assertions on the caught exception without using the try-catch block. + Использование утверждений в блоках catch является проблематичным, так как тест будет пройден, даже если не возникает исключение, а блок catch не выполняется. Используйте "Assert.Throws", "Assert.ThrowsExactly", "Assert.ThrowsAsync" или "Assert.ThrowsExactlyAsync" для проверки возникновения исключения, а затем выполните дополнительные утверждения перехваченного исключения без применения блока try-catch. diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hant.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hant.xlf index 088053f50b..82434bb956 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hant.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hant.xlf @@ -991,17 +991,17 @@ The type declaring these methods should also respect the following rules: Do not use asserts in catch blocks - Do not use asserts in catch blocks + 不要在 Catch 區塊中使用判斷提示 Do not use asserts in catch blocks because they may not fail the test if no exception is thrown - Do not use asserts in catch blocks because they may not fail the test if no exception is thrown + 請勿在 Catch 區塊中使用判斷提示,因為如果沒有拋出例外,判斷提示可能不會測試失敗 Using asserts in catch blocks is problematic because the test will pass even if no exception is thrown and the catch block is never executed. Use 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' or 'Assert.ThrowsExactlyAsync' to verify that an exception is thrown, and then make additional assertions on the caught exception without using the try-catch block. - Using asserts in catch blocks is problematic because the test will pass even if no exception is thrown and the catch block is never executed. Use 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' or 'Assert.ThrowsExactlyAsync' to verify that an exception is thrown, and then make additional assertions on the caught exception without using the try-catch block. + 在 Catch 區塊中使用斷言會有問題,因為即使沒有拋出例外且 Catch 區塊從未執行,測試仍會通過。請使用 'Assert.Throws'、'Assert.ThrowsExactly'、'Assert.ThrowsAsync' 或 'Assert.ThrowsExactlyAsync' 來驗證是否有拋出例外,然後在不使用 try-catch 區塊的情況下,對捕捉到的例外進行進一步判斷提示。 From d87a4f66d48c653a5d87e19f1ec3a3a0e81e34da Mon Sep 17 00:00:00 2001 From: dotnet bot Date: Sun, 9 Nov 2025 05:59:21 -0800 Subject: [PATCH 2/3] Localized file check-in by OneLocBuild Task: Build definition ID 1218: Build ID 2834747 --- .../TestFramework/Resources/xlf/FrameworkMessages.cs.xlf | 4 ++-- .../TestFramework/Resources/xlf/FrameworkMessages.de.xlf | 4 ++-- .../TestFramework/Resources/xlf/FrameworkMessages.fr.xlf | 4 ++-- .../TestFramework/Resources/xlf/FrameworkMessages.it.xlf | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.cs.xlf b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.cs.xlf index 00fda09881..adf5071666 100644 --- a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.cs.xlf +++ b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.cs.xlf @@ -254,12 +254,12 @@ Skutečnost: {2} Value '{0}' is not within the expected range [{1}..{2}]. {3} - Value '{0}' is not within the expected range [{1}..{2}]. {3} + Hodnota {0} není v očekávaném rozsahu [{1}..{2}]. {3} The maximum value must be greater than the minimum value. - The maximum value must be greater than the minimum value. + Maximální hodnota musí být větší než minimální hodnota. diff --git a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.de.xlf b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.de.xlf index 7396caec35..6a225664b9 100644 --- a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.de.xlf +++ b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.de.xlf @@ -254,12 +254,12 @@ Tatsächlich: {2} Value '{0}' is not within the expected range [{1}..{2}]. {3} - Value '{0}' is not within the expected range [{1}..{2}]. {3} + Der Wert „{0}“ liegt nicht im erwarteten Bereich [{1}..{2}]. {3} The maximum value must be greater than the minimum value. - The maximum value must be greater than the minimum value. + Der Höchstwert muss größer als der Mindestwert sein. diff --git a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.fr.xlf b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.fr.xlf index c4a437b28c..74589b59b4 100644 --- a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.fr.xlf +++ b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.fr.xlf @@ -254,12 +254,12 @@ Réel : {2} Value '{0}' is not within the expected range [{1}..{2}]. {3} - Value '{0}' is not within the expected range [{1}..{2}]. {3} + La valeur « {0} » n'est pas dans la plage attendue [{1}..{2}]. {3} The maximum value must be greater than the minimum value. - The maximum value must be greater than the minimum value. + La valeur maximale doit être supérieure à la valeur minimale. diff --git a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.it.xlf b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.it.xlf index 25b59ee39f..816c5090e3 100644 --- a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.it.xlf +++ b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.it.xlf @@ -254,12 +254,12 @@ Effettivo: {2} Value '{0}' is not within the expected range [{1}..{2}]. {3} - Value '{0}' is not within the expected range [{1}..{2}]. {3} + Il valore '{0}' non è compreso nell'intervallo previsto [{1}, {2}]. {3} The maximum value must be greater than the minimum value. - The maximum value must be greater than the minimum value. + Il valore massimo deve essere superiore a quello minimo. From 58dbee748801bc481f09f37d72068577318bf6ee Mon Sep 17 00:00:00 2001 From: dotnet bot Date: Sun, 9 Nov 2025 06:00:01 -0800 Subject: [PATCH 3/3] Localized file check-in by OneLocBuild Task: Build definition ID 1218: Build ID 2834747 --- .../TestFramework/Resources/xlf/FrameworkMessages.ja.xlf | 4 ++-- .../TestFramework/Resources/xlf/FrameworkMessages.pt-BR.xlf | 4 ++-- .../TestFramework/Resources/xlf/FrameworkMessages.ru.xlf | 4 ++-- .../TestFramework/Resources/xlf/FrameworkMessages.zh-Hant.xlf | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.ja.xlf b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.ja.xlf index f21d716e12..c0434cbe8a 100644 --- a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.ja.xlf +++ b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.ja.xlf @@ -254,12 +254,12 @@ Actual: {2} Value '{0}' is not within the expected range [{1}..{2}]. {3} - Value '{0}' is not within the expected range [{1}..{2}]. {3} + 値 '{0}' は予期される範囲 [{1}..{2}] 内にありません。{3} The maximum value must be greater than the minimum value. - The maximum value must be greater than the minimum value. + 最大値は、最小値より大きくする必要があります。 diff --git a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.pt-BR.xlf b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.pt-BR.xlf index 15cbde298b..daf7574c1a 100644 --- a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.pt-BR.xlf +++ b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.pt-BR.xlf @@ -254,12 +254,12 @@ Real: {2} Value '{0}' is not within the expected range [{1}..{2}]. {3} - Value '{0}' is not within the expected range [{1}..{2}]. {3} + O valor '{0}' não está dentro do intervalo esperado [{1}.. {2}]. {3} The maximum value must be greater than the minimum value. - The maximum value must be greater than the minimum value. + O valor máximo deve ser maior que o valor mínimo. diff --git a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.ru.xlf b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.ru.xlf index ec0327c91a..dcaa24e48d 100644 --- a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.ru.xlf +++ b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.ru.xlf @@ -254,12 +254,12 @@ Actual: {2} Value '{0}' is not within the expected range [{1}..{2}]. {3} - Value '{0}' is not within the expected range [{1}..{2}]. {3} + Значение "{0}" не находится в пределах ожидаемого диапазона [{1}..{2}]. {3} The maximum value must be greater than the minimum value. - The maximum value must be greater than the minimum value. + Максимальное значение должно быть больше минимального значения. diff --git a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.zh-Hant.xlf b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.zh-Hant.xlf index 490f2a618e..3d7f6f461d 100644 --- a/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.zh-Hant.xlf +++ b/src/TestFramework/TestFramework/Resources/xlf/FrameworkMessages.zh-Hant.xlf @@ -254,12 +254,12 @@ Actual: {2} Value '{0}' is not within the expected range [{1}..{2}]. {3} - Value '{0}' is not within the expected range [{1}..{2}]. {3} + 值 '{0}' 不在預期的範圍 [{1}, {2}] 內。{3} The maximum value must be greater than the minimum value. - The maximum value must be greater than the minimum value. + 最大值必須大於最小值。