From 6cbfc9f31c8b5fb16405d3db32ceef2f571b3f23 Mon Sep 17 00:00:00 2001 From: dotnet bot Date: Wed, 18 Dec 2024 03:58:10 -0800 Subject: [PATCH] Localized file check-in by OneLocBuild Task: Build definition ID 1218: Build ID 2604027 --- .../MSTest.Analyzers/xlf/Resources.fr.xlf | 16 ++++++++-------- .../MSTest.Analyzers/xlf/Resources.ja.xlf | 16 ++++++++-------- .../MSTest.Analyzers/xlf/Resources.pt-BR.xlf | 16 ++++++++-------- .../MSTest.Analyzers/xlf/Resources.ru.xlf | 16 ++++++++-------- .../MSTest.Analyzers/xlf/Resources.tr.xlf | 17 +++++++++-------- .../MSTest.Analyzers/xlf/Resources.zh-Hans.xlf | 16 ++++++++-------- 6 files changed, 49 insertions(+), 48 deletions(-) diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf index f55a879b13..bf8ddfce3b 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf @@ -644,14 +644,14 @@ Le type doit être une classe - return type should be 'void', 'Task' or 'ValueTask' - it should not be 'async void' - it should not be a special method (finalizer, operator...). - Test methods, methods marked with the '[TestMethod]' attribute, should respect the following layout to be considered valid by MSTest: -- it should be 'public' (or 'internal' if '[assembly: DiscoverInternals]' attribute is set) -- it should not be 'static' -- it should may be generic as long as type parameters can be inferred and argument types are compatible -- it should not be 'abstract' -- return type should be 'void', 'Task' or 'ValueTask' -- it should not be 'async void' -- it should not be a special method (finalizer, operator...). + Les méthodes de test, c’est-à-dire les méthodes marquées de l’attribut « [TestMethod] », doivent respecter la disposition suivante pour être considérées comme valides par MSTest : +– elle doit être « publique » (ou « interne » si l’attribut « [assembly : DiscoverInternals] » est défini) +– elle ne doit pas être « statique » +– elle peut être générique tant que les paramètres de type peuvent être déduits et que les types d’arguments sont compatibles +– il ne doit pas être « abstract » +– le type de retour doit être « void », « Task » ou « ValueTask » +– elle ne doit pas être « async void » +– elle ne doit pas être une méthode spéciale (finaliseur, opérateur...). diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ja.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ja.xlf index d0527a3d77..584950f364 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ja.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ja.xlf @@ -644,14 +644,14 @@ The type declaring these methods should also respect the following rules: - return type should be 'void', 'Task' or 'ValueTask' - it should not be 'async void' - it should not be a special method (finalizer, operator...). - Test methods, methods marked with the '[TestMethod]' attribute, should respect the following layout to be considered valid by MSTest: -- it should be 'public' (or 'internal' if '[assembly: DiscoverInternals]' attribute is set) -- it should not be 'static' -- it should may be generic as long as type parameters can be inferred and argument types are compatible -- it should not be 'abstract' -- return type should be 'void', 'Task' or 'ValueTask' -- it should not be 'async void' -- it should not be a special method (finalizer, operator...). + '[TestMethod]' 属性でマークされたテスト メソッドは、MSTest によって有効と見なされるように、次のレイアウトを考慮する必要があります: +- 'public' である必要があります ('[assembly: DiscoverInternals]' 属性が設定されている場合は 'internal' である必要があります) +- 'static' にすることはできません +- 型パラメーターを推論でき、引数の型が互換性がある限り、ジェネリックである必要があります +- 'abstract' にすることはできません +- 戻り値の型は 'void'、'Task'、または 'ValueTask' である必要があります +- 'async void' にすることはできません +- 特殊なメソッド (ファイナライザー、演算子...) にすることはできません。 diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.pt-BR.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.pt-BR.xlf index 44803079cb..a8bb4a42b4 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.pt-BR.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.pt-BR.xlf @@ -644,14 +644,14 @@ O tipo que declara esses métodos também deve respeitar as seguintes regras: - return type should be 'void', 'Task' or 'ValueTask' - it should not be 'async void' - it should not be a special method (finalizer, operator...). - Test methods, methods marked with the '[TestMethod]' attribute, should respect the following layout to be considered valid by MSTest: -- it should be 'public' (or 'internal' if '[assembly: DiscoverInternals]' attribute is set) -- it should not be 'static' -- it should may be generic as long as type parameters can be inferred and argument types are compatible -- it should not be 'abstract' -- return type should be 'void', 'Task' or 'ValueTask' -- it should not be 'async void' -- it should not be a special method (finalizer, operator...). + Os métodos de teste, métodos marcados com o atributo '[TestMethod]', devem respeitar o seguinte layout para que sejam considerados válidos pelo MSTest: +- deve ser "público" (ou "interno" se o atributo "[assembly: DiscoverInternals]" estiver definido) +- não pode ser ''estático'' +- ele deve ser genérico, desde que os parâmetros de tipo possam ser inferidos e os tipos de argumentos sejam compatíveis +- não pode ser ''abstrato'' +- o tipo de retorno deve ser 'nulo', 'Tarefa' ou 'ValueTask' +- não pode ser ''nulo assíncrono'' +— não deve ser um método especial (finalizador, operador...). diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf index d2f619f344..0413a925b7 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf @@ -654,14 +654,14 @@ The type declaring these methods should also respect the following rules: - return type should be 'void', 'Task' or 'ValueTask' - it should not be 'async void' - it should not be a special method (finalizer, operator...). - Test methods, methods marked with the '[TestMethod]' attribute, should respect the following layout to be considered valid by MSTest: -- it should be 'public' (or 'internal' if '[assembly: DiscoverInternals]' attribute is set) -- it should not be 'static' -- it should may be generic as long as type parameters can be inferred and argument types are compatible -- it should not be 'abstract' -- return type should be 'void', 'Task' or 'ValueTask' -- it should not be 'async void' -- it should not be a special method (finalizer, operator...). + Методы теста (методы, помеченные атрибутом "[TestMethod]") должны соблюдать следующую структуру, чтобы считаться допустимыми в MSTest: +– должно быть присвоено значение "public" (или "internal", если задан атрибут "[assembly: DiscoverInternals]") +– не следует присваивать значение "static" +– могут быть универсальными, если можно вывести параметры типа, а типы аргументов являются совместимыми +– не следует присваивать значение "abstract" +– возвращаемый тип должен быть "void", "Task" или "ValueTask" +– не следует присваивать значение "async void" +– это должен быть специальный метод (метод завершения, оператор...). diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.tr.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.tr.xlf index db0be22ae7..eb8dbfb988 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.tr.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.tr.xlf @@ -645,14 +645,15 @@ Bu yöntemleri bildiren tipin ayrıca aşağıdaki kurallara uyması gerekir: - return type should be 'void', 'Task' or 'ValueTask' - it should not be 'async void' - it should not be a special method (finalizer, operator...). - Test methods, methods marked with the '[TestMethod]' attribute, should respect the following layout to be considered valid by MSTest: -- it should be 'public' (or 'internal' if '[assembly: DiscoverInternals]' attribute is set) -- it should not be 'static' -- it should may be generic as long as type parameters can be inferred and argument types are compatible -- it should not be 'abstract' -- return type should be 'void', 'Task' or 'ValueTask' -- it should not be 'async void' -- it should not be a special method (finalizer, operator...). + '[TestMethod]' özniteliğiyle işaretlenen test yöntemleri, MSTest: + tarafından geçerli kabul edilebilmesi için aşağıdaki düzene uygun olacak şekilde düzenlenmelidir +- 'public' (veya '[assembly: DiscoverInternals]' özniteliği ayarlanmışsa 'internal') olmalıdır +- 'static' olmamalıdır +- Tür parametreleri çıkarsandıkça ve bağımsız değişken türleri uyumlu olduğu sürece genel olmalıdır +- 'abstract' olmamalıdır +- dönüş türü 'void', 'Task' veya 'ValueTask' olmalıdır +- 'async void' olmamalıdır +- özel bir yöntem (sonlandırıcı, işleç...) olmamalıdır. diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hans.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hans.xlf index 9fb03859ef..960cd5eb87 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hans.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hans.xlf @@ -644,14 +644,14 @@ The type declaring these methods should also respect the following rules: - return type should be 'void', 'Task' or 'ValueTask' - it should not be 'async void' - it should not be a special method (finalizer, operator...). - Test methods, methods marked with the '[TestMethod]' attribute, should respect the following layout to be considered valid by MSTest: -- it should be 'public' (or 'internal' if '[assembly: DiscoverInternals]' attribute is set) -- it should not be 'static' -- it should may be generic as long as type parameters can be inferred and argument types are compatible -- it should not be 'abstract' -- return type should be 'void', 'Task' or 'ValueTask' -- it should not be 'async void' -- it should not be a special method (finalizer, operator...). + 测试方法(标记有 "[TestMethod]" 属性的方法)应遵循以下布局,以便 MSTest 将其视为有效: +- 它应该是 "public" (如果设置了 "[assembly: DiscoverInternals]" 属性,则应该是 "internal") +- 它不应为 "static" +- 只要可以推断类型参数并且参数类型兼容,它就应该是泛型 +- 它不应为 "abstract" +- 返回类型应为 "void”、"Task" 或 "ValueTask" +- 它不应为 "async void" +- 它不应是特殊方法(终结器、运算符...)。