From 777dbaad97aa0135306e4a1ff9f97c16eafd7159 Mon Sep 17 00:00:00 2001 From: dotnet bot Date: Mon, 6 Jul 2026 22:00:07 -0700 Subject: [PATCH] Localized file check-in by OneLocBuild Task: Build definition ID 1218: Build ID 3016051 --- .../MSTest.Analyzers/xlf/Resources.cs.xlf | 29 +++++++++---------- .../MSTest.Analyzers/xlf/Resources.de.xlf | 29 +++++++++---------- .../MSTest.Analyzers/xlf/Resources.es.xlf | 29 +++++++++---------- .../MSTest.Analyzers/xlf/Resources.fr.xlf | 29 +++++++++---------- .../MSTest.Analyzers/xlf/Resources.it.xlf | 29 +++++++++---------- .../MSTest.Analyzers/xlf/Resources.ja.xlf | 29 +++++++++---------- .../MSTest.Analyzers/xlf/Resources.ko.xlf | 29 +++++++++---------- .../MSTest.Analyzers/xlf/Resources.pl.xlf | 29 +++++++++---------- .../MSTest.Analyzers/xlf/Resources.pt-BR.xlf | 29 +++++++++---------- .../MSTest.Analyzers/xlf/Resources.ru.xlf | 29 +++++++++---------- .../MSTest.Analyzers/xlf/Resources.tr.xlf | 29 +++++++++---------- .../xlf/Resources.zh-Hans.xlf | 29 +++++++++---------- .../xlf/Resources.zh-Hant.xlf | 29 +++++++++---------- 13 files changed, 182 insertions(+), 195 deletions(-) diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.cs.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.cs.xlf index 1b94509452..fe8d09d13a 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.cs.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.cs.xlf @@ -563,22 +563,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - Aby byly metody s označením [GlobalTestInitialize] nebo [GlobalTestCleanup] platné, musí se řídit následujícím rozložením: -– Nesmí být deklarované pro obecnou class. -– Musí být „public“. -– Musí být „static“. -– Nesmí být „async void“. -– Nesmí být speciální metodou („finalizer“, „operator“...). -– Nesmí být obecné. -– Musí mít jeden parametr typu TestContext. -– Návratový typ musí být „void“, „Task“ nebo „ValueTask“. + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -Typ deklarující tyto metody by měl také respektovat následující pravidla: -– Typ by měl být class. -– class by měla být „public“. -– class by neměla být „static“. -– class by měla být označena atributem [TestClass] (nebo odvozeným atributem). -– class by neměla být obecná. +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.de.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.de.xlf index d7b15646e7..a8a65db90c 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.de.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.de.xlf @@ -564,22 +564,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - Methoden, die mit „[GlobalTestInitialize]“ oder „[GlobalTestCleanup]“ gekennzeichnet sind, sollten dem folgenden Layout folgen, um gültig zu sein: -– kann nicht für eine generische class deklariert werden -– muss „public“ sein -– muss „static“ sein -– darf nicht „async void“ sein -– darf keine spezielle Methode sein (Finalizer, Operator...). -– darf nicht „generic“ sein -– muss einen Parameter vom Typ „TestContext“ annehmen -– der Rückgabetyp muss „void“, „Task“ oder „ValueTask“ sein + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -Der Typ, der diese Methoden deklariert, sollte auch die folgenden Regeln beachten: -– Der Typ sollte eine class sein -– Die class sollte „public“ sein -– Die class darf nicht „static“ sein -– Die class muss mit „[TestClass]“ (oder einem abgeleiteten Attribut) markiert werden -– die class darf nicht generisch sein. +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.es.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.es.xlf index c6b2d751ea..f2d5f27b74 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.es.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.es.xlf @@ -563,22 +563,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - Los métodos marcados con '[GlobalTestInitialize]' o '[GlobalTestCleanup]' deben seguir el siguiente diseño para ser válidos: --no se puede declarar en una class genérica -- debería ser 'public' -- debería estar 'static' --no debe ser 'async void' --no debe ser un método especial (finalizador, operador...). --no debe ser genérico --debe tomar un parámetro de tipo 'TestContext' -- El tipo de valor devuelto debe ser 'void', 'Task' o 'ValueTask' + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -El tipo que declara estos métodos también debe respetar las reglas siguientes: --El tipo debe ser una class --La class debe ser 'public' --La class no debe ser 'static' --La class debe marcarse con '[TestClass]' (o un atributo derivado) --la class no debe ser genérica. +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf index fff712eb7b..398d0b548a 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf @@ -563,22 +563,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - Les méthodes marquées par « [GlobalTestInitialize] » ou « [GlobalTestCleanup] » doivent respecter le schéma suivant pour être valides : -- elle ne peut pas être déclarée dans une classe générique -– elle doit être « public » -– elle doit être « static » -– elle ne doit pas être « async void » -– il ne doit pas s’agir d’une méthode spéciale (finaliseur, opérateur...). -– elle ne doit pas être générique -– il doit prendre un paramètre de type « TestContext » -- le type de retour doit être « void », « Task » ou « ValueTask » + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -Le type déclarant ces méthodes doit également respecter les règles suivantes : -- le type doit être une classe -- la classe doit être « public » -- la classe ne doit pas être « static » -- la classe doit être marquée par « [TestClass] » (ou un attribut dérivé) -- la classe ne doit pas être générique. +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.it.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.it.xlf index 16fe14405f..75f5b4eb71 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.it.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.it.xlf @@ -563,22 +563,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - I metodi contrassegnati con ‘[GlobalTestInitialize]’ o ‘[GlobalTestCleanup]’ devono seguire il layout seguente per essere validi: -- Non può essere dichiarato in una classe generica -- Deve essere 'public' -- Deve essere 'static' -- Non deve essere 'async void' -- Non deve essere un metodo speciale (finalizzatore, operatore...). -- Non deve essere generico -- Deve accettare un parametro di tipo 'TestContext' -- Il tipo restituito deve essere 'void', 'Task' o 'ValueTask' + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -Anche il tipo che dichiara questi metodi deve rispettare le regole seguenti: -- Il tipo deve essere una classe -- La classe deve essere 'public' -- La classe non deve essere 'static' -- La classe deve essere contrassegnata con '[TestClass]' (o un attributo derivato) -- La classe non deve essere generica. +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ja.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ja.xlf index 5354086e50..4267a91a7f 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ja.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ja.xlf @@ -563,22 +563,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - '[GlobalTestInitialize]' または '[GlobalTestCleanup]' でマークされたメソッドを有効にするには、次のレイアウトに従う必要があります: -- ジェネリック class で宣言することはできません -- 'public' である必要があります -- 'static' である必要があります -- 'async void' にすることはできません -- 特殊なメソッド (ファイナライザー、演算子...) にすることはできません。 -- ジェネリックにすることはできません -- 'TestContext' 型のパラメーターを 1 つ受け取る必要があります -- 戻り値の型が 'void'、'Task'、または 'ValueTask' である必要があります + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -これらのメソッドを宣言する型も、次の規則に従う必要があります: -- 型は class である必要があります --class は 'public' である必要があります -- class を 'static' にすることはできません -- class は '[TestClass]' (または派生属性) でマークする必要があります -- class をジェネリックにすることはできません。 +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ko.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ko.xlf index 5a5f7860b9..81051b1fcc 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ko.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ko.xlf @@ -563,22 +563,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - '[GlobalTestInitialize]' 또는 '[GlobalTestCleanup]'으로 표시된 메서드는 다음 레이아웃을 따라야 유효합니다. -- 제네릭 class에서 선언할 수 없습니다. -- 'public'이어야 합니다. -- 'static'이어야 합니다. -- 'async void'가 아니어야 합니다. -- 특수 메서드(종료자, 연산자...)가 아니어야 합니다. -- 제네릭이 아니어야 합니다. -- 'TestContext' 형식의 매개 변수를 하나 사용해야 합니다. -- 반환 형식은 'void', 'Task' 또는 'ValueTask'여야 합니다. + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -이러한 메서드를 선언하는 형식은 다음 규칙도 준수해야 합니다. -- 형식은 class여야 합니다. --class는 'public'이어야 합니다. -- class는 'static'이 되어서는 안 됩니다. -- class는 '[TestClass]'(또는 파생 특성)로 표시되어야 합니다. -- class는 제네릭이 아니어야 합니다. +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.pl.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.pl.xlf index 10765d17fb..fe367971cc 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.pl.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.pl.xlf @@ -563,22 +563,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - Metody oznaczone znakiem „[GlobalTestInitialize]” lub „[GlobalTestCleanup]” powinny być zgodne z następującym układem, aby były prawidłowe: -— nie może być zadeklarowana w class ogólnej -— powinna być typu „public” -— powinna mieć wartość „static” -— nie powinna to być wartość „async void” -— nie powinna to być metoda specjalna (finalizator, operator...). -— nie powinna być ogólna -— powinna przyjmować jeden parametr typu „TestContext” -— zwracany typ powinien mieć wartość „void”, „Task” lub „ValueTask” + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -Typ deklarujący te metody powinien również przestrzegać następujących reguł: -— typ powinien być class -— class powinna być „publiczna” -— class nie powinna mieć wartości „static” -— class powinna być oznaczona „[TestClass]” (lub atrybutem pochodnym) -— class nie powinna być ogólna. +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.pt-BR.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.pt-BR.xlf index 081e22f28b..a4005d1302 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.pt-BR.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.pt-BR.xlf @@ -563,22 +563,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - Os métodos marcados com "[GlobalTestInitialize]" ou "[GlobalTestCleanup]" devem seguir o seguinte layout para serem válidos: --não podem ser declarados em uma classe genérica --devem ser "public" --devem ser "static" --não devem ser "async void" --não devem ser um método especial (finalizador, operador...). --não devem ser genéricos --devem usar um parâmetro do tipo “TestContext” --o tipo de retorno deve ser “void”, “Task” ou “ValueTask” + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -O tipo que declara esses métodos também deve respeitar as seguintes regras: --O tipo deve ser uma classe --A classe deve ser "public" --A classe não deve ser “static” --A classe deve ser marcada com “[TestClass]” (ou um atributo derivado) --a classe não deve ser genérica. +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf index 637d2e61a7..fffc3cc258 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf @@ -569,22 +569,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - Чтобы метод, помеченный "[GlobalTestInitialize]" или "[GlobalTestCleanup]", был допустимым, он должен соответствовать следующей структуре: -– не может быть объявлен для универсального class ("generic") -– должен быть общедоступным ("public") -– должен быть статическим ("static") -– не должен быть асинхронным и не возвращающим значения ("async void") -– не должен быть специальным (метод завершения, оператор…). -– не должен быть общим ("generic") -– должен принимать один параметр типа "TestContext" -– должен иметь тип возвращаемого значения "void", "Task" или "ValueTask" + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -Тип, объявляющий такие методы, также должен соответствовать следующим правилам: -– должен быть class -– class должен быть общедоступным ("public") -– class должен быть статическим ("static") -– class должен быть помечен как "[TestClass]" (или производный атрибут) -– class должен быть универсальным ("generic"). +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.tr.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.tr.xlf index 9a6ba15b24..e38ecfaf8c 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.tr.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.tr.xlf @@ -563,22 +563,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - ‘[GlobalTestInitialize]’ veya ‘[GlobalTestCleanup]’ ile işaretlenmiş yöntemlerin geçerli olabilmesi için şu düzeni izlemesi gerekir: --genel bir class tanımlanamaz --'public' olmalıdır --'static' olmalıdır --'async void' olmamalıdır --özel bir metot (sonlandırıcı, işleç...) olmamalıdır. -- genel olmamalıdır -- 'TestContext' türünden bir parametre almalıdır -- dönüş türü 'void', 'Task' veya 'ValueTask' olmalıdır + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -Bu metotları bildiren türün ayrıca aşağıdaki kurallara uyması gerekir: --Tür bir class olmalıdır --class ‘public’ olmalıdır --class 'static' olmamalıdır --class '[TestClass]' (veya türetilmiş bir öznitelik) ile işaretlenmelidir --class genel olmamalıdır. +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hans.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hans.xlf index 77ea98c163..ff44c5847c 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hans.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hans.xlf @@ -563,22 +563,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - 标记有 "[GlobalTestInitialize]" 或 "[GlobalTestCleanup]" 的方法应遵循以下布局才会有效: -- 不能在泛型 class 上声明它 -- 它应为 "public" -- 它应为 "static" -- 它不应为 "async void" -- 它不应是特殊方法(终结器、运算符...)。 -- 它不应是泛型的 -- 它应采用 "TestContext" 类型的一个参数 -- 返回类型应为 "void"、"Task" 或 "ValueTask" + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -声明这些方法的类型还应遵循以下规则: -- 类型应为 class -- class 应该为 "public" -- class 不应为 "static" -- 应使用 "[TestClass]"(或派生属性)标记 class -- class 不应是泛型的。 +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"} diff --git a/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hant.xlf b/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hant.xlf index 95542115d5..58f17a9c1a 100644 --- a/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hant.xlf +++ b/src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hant.xlf @@ -563,22 +563,21 @@ The type declaring these methods should also respect the following rules: -The class should be 'public' -The class should be marked with '[TestClass]' (or a derived attribute) -the class should not be generic. - 標示為 '[GlobalTestInitialize]' 或 '[GlobalTestCleanup]' 的方法應該遵循下列配置才能有效: --其不能在泛型 class 上宣告 --其應為 'public' --其應為 'static' --其不應為 'async void' --其不應為特殊方法 (完成項、運算子...)。 --其不應為泛型 --其應該接受類型為 'TestContext' 的一個參數 --傳回類型應為 'void'、'Task' 或 'ValueTask' + Methods marked with '[GlobalTestInitialize]' or '[GlobalTestCleanup]' should follow the following layout to be valid: +-it can't be declared on a generic class +-it should be 'public' +-it should be 'static' +-it should not be 'async void' +-it should not be a special method (finalizer, operator...). +-it should not be generic +-it should take one parameter of type 'TestContext' +-return type should be 'void', 'Task' or 'ValueTask' -宣告這些方法的類型還應遵循以下規則: --類型應為 class --class 應為 'public' --class 不應為 'static' --class 應標示為 '[TestClass]' (或衍生屬性) --class 不應為泛型。 +The type declaring these methods should also respect the following rules: +-The type should be a class +-The class should be 'public' +-The class should be marked with '[TestClass]' (or a derived attribute) +-the class should not be generic. {Locked="[GlobalTestInitialize]"}{Locked="[GlobalTestCleanup]"}{Locked="[TestClass]"}{Locked="TestContext"}{Locked="ValueTask"}{Locked="Task"}{Locked="public"}{Locked="static"}{Locked="void"}{Locked="async void"}{Locked="async"}{Locked="class"}