Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TestMethod should be valid analyzer description #2295

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Analyzers/MSTest.Analyzers/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Analyzers/MSTest.Analyzers/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</value>
- it should not be a special method (finalizer, operator...).</value>
</data>
<data name="TestMethodShouldBeValidMessageFormat_NotAbstract" xml:space="preserve">
<value>Test method '{0}' should not be 'abstract'</value>
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">Testovací metody (metody označené atributem [TestMethod]) by měly respektovat následující rozložení, které MSTest považuje za platné:
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">Testovací metody (metody označené atributem [TestMethod]) by měly respektovat následující rozložení, které MSTest považuje za platné:
– musí být public (nebo internal, pokud je nastaven atribut [assembly: DiscoverInternals]),
– musí být static,
– nesmí být obecné,
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">Testmethoden, Methoden, die mit dem Attribut "[TestMethod]" gekennzeichnet sind, sollten das folgende Layout berücksichtigen, um von MSTest als gültig angesehen zu werden:
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">Testmethoden, Methoden, die mit dem Attribut "[TestMethod]" gekennzeichnet sind, sollten das folgende Layout berücksichtigen, um von MSTest als gültig angesehen zu werden:
– es darf "public" (oder "internal" sein, wenn das Attribut "[assembly: DiscoverInternals]" festgelegt ist)
– es darf nicht "static" sein
– es darf nicht generisch sein
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.es.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">Los métodos de prueba, los métodos marcados con el atributo '[TestMethod]', deben respetar el siguiente diseño para que MSTest lo considere válido:
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">Los métodos de prueba, los métodos marcados con el atributo '[TestMethod]', deben respetar el siguiente diseño para que MSTest lo considere válido:
- debe ser 'public' (o 'internal' si se establece el atributo '[assembly: DiscoverInternals]')
- No debe ser "static"
- no debe ser genérico
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">Les méthodes de test, qui sont des méthodes marquées avec l’attribut « [TestMethod] », doivent respecter la disposition suivante pour être considérées comme valides par MSTest :
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">Les méthodes de test, qui sont des méthodes marquées avec l’attribut « [TestMethod] », doivent respecter la disposition suivante pour être considérées comme valides par MSTest :
– il doit être « public » (ou « interne » si l’attribut « [assembly : DiscoverInternals] » est défini)
– le texte ne doit pas être « statique »
– il ne doit pas être générique
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.it.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">I metodi di test, metodi contrassegnati con l'attributo '[TestMethod]', dovrebbero rispettare il layout seguente per essere considerati validi da MSTest:
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">I metodi di test, metodi contrassegnati con l'attributo '[TestMethod]', dovrebbero rispettare il layout seguente per essere considerati validi da MSTest:
- dovrebbe essere 'pubblico' (o 'interno' se l'attributo '[assembly: DiscoverInternals]' è impostato)
- non dovrebbe essere 'statico'
- non dovrebbe essere generico
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">'[TestMethod]' 属性でマークされたテスト メソッドは、MSTest によって有効と見なされるように、次のレイアウトを考慮する必要があります:
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">'[TestMethod]' 属性でマークされたテスト メソッドは、MSTest によって有効と見なされるように、次のレイアウトを考慮する必要があります:
- 'public' ('[assembly: DiscoverInternals]' 属性が設定されている場合は 'internal' である必要があります)
- 'static' にすることはできません
- ジェネリックにすることはできません
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.ko.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">'[TestMethod]' 특성으로 표시된 메서드인 테스트 메서드는 MSTest에서 유효한 것으로 간주되도록 다음 레이아웃을 준수해야 합니다.
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">'[TestMethod]' 특성으로 표시된 메서드인 테스트 메서드는 MSTest에서 유효한 것으로 간주되도록 다음 레이아웃을 준수해야 합니다.
- 'public'(혹은 '[assembly: DiscoverInternals]' 특성이 설정된 경우 'internal')이어야 합니다.
- 'static'이 아니어야 합니다.
- 제네릭이 아니어야 합니다.
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.pl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">Metody testowe, czyli metody oznaczone atrybutem „[TestMethod]”, powinny uwzględniać następujący układ, aby platforma MSTest uznała je za prawidłowe:
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">Metody testowe, czyli metody oznaczone atrybutem „[TestMethod]”, powinny uwzględniać następujący układ, aby platforma MSTest uznała je za prawidłowe:
— powinna to być wartość „public” (lub „internal”, jeśli ustawiono atrybut „[assembly: DiscoverInternals]”)
— nie powinna to być wartość „static”
— nie powinna to być wartość ogólna
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.pt-BR.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">Métodos de teste, métodos marcados com o atributo ''[TestMethod]'', devem respeitar o layout a seguir para serem considerados válidos pelo MSTest:
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">Métodos de teste, métodos marcados com o atributo ''[TestMethod]'', devem respeitar o layout a seguir para serem considerados válidos pelo MSTest:
- deve ser "público" (ou "interno" se o atributo "[assembly: DiscoverInternals]" estiver definido)
- não deve ser ''estático''
- não deve ser genérico
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.ru.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">Методы теста (методы, помеченные атрибутом "[TestMethod]") должны соблюдать следующую структуру, чтобы считаться допустимыми в MSTest:
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">Методы теста (методы, помеченные атрибутом "[TestMethod]") должны соблюдать следующую структуру, чтобы считаться допустимыми в MSTest:
– должно быть присвоено значение "public" (или "internal", если задан атрибут "[assembly: DiscoverInternals]")
– не следует присваивать значение "static"
– они не должны быть универсальными
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.tr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">'[TestMethod]' özniteliğiyle işaretlenen test yöntemleri, MSTest:
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">'[TestMethod]' özniteliğiyle işaretlenen test yöntemleri, MSTest:
tarafından geçerli kabul edilmesi için aşağıdaki düzene göre düzenlenmelidir.
- 'public' (veya '[assembly: DiscoverInternals]' özniteliği ayarlanmışsa 'internal') olmalıdır
- 'static' olmalıdır
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hans.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">测试方法(标记有“[TestMethod]”属性的方法)应遵循以下布局,以供 MSTest 将其视为有效:
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">测试方法(标记有“[TestMethod]”属性的方法)应遵循以下布局,以供 MSTest 将其视为有效:
- 它应为“public”(如果设置了“[assembly: DiscoverInternals]”属性,则应为“internal”)
- 它不应为“static”
- 它不应是泛型的
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.zh-Hant.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void' or 'Task'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should be a special method (finalizer, operator...).</source>
<target state="translated">測試方法 (標示為 '[TestMethod]' 屬性的方法) 應該遵循下列配置,讓 MSTest 視為有效:
- it should not be a special method (finalizer, operator...).</source>
<target state="needs-review-translation">測試方法 (標示為 '[TestMethod]' 屬性的方法) 應該遵循下列配置,讓 MSTest 視為有效:
- 它應該是 'public' (如果設定 '[assembly: DiscoverInternals]' 屬性,則為 'internal')
- 它應該是 'static'
- 它不能是泛型
Expand Down