Skip to content
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
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 @@ -991,17 +991,17 @@ Typ deklarující tyto metody by měl také respektovat následující pravidla:
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksTitle">
<source>Do not use asserts in catch blocks</source>
<target state="new">Do not use asserts in catch blocks</target>
<target state="translated">Nepoužívat kontrolní výrazy v blocích catch</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksMessageFormat">
<source>Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</source>
<target state="new">Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</target>
<target state="translated">Nepoužívejte kontrolní výrazy v blocích catch, protože test nemusí selhat, pokud není vyvolána žádná výjimka.</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksDescription">
<source>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.</source>
<target state="new">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.</target>
<target state="translated">Používání kontrolních výrazů v blocích catch je problematické, protože test projde, i když se nevyvolá žádná výjimka a blok catch se nikdy nespustí. K ověření, že je vyvolána výjimka, použijte metody Assert.Throws, Assert.ThrowsExactly, Assert.ThrowsAsync nebo Assert.ThrowsExactlyAsync a poté proveďte další kontrolní výrazy nad zachycenou výjimkou bez použití bloku try-catch.</target>
<note />
</trans-unit>
</body>
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 @@ -991,17 +991,17 @@ El tipo que declara estos métodos también debe respetar las reglas siguientes:
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksTitle">
<source>Do not use asserts in catch blocks</source>
<target state="new">Do not use asserts in catch blocks</target>
<target state="translated">No use aserciones en bloques catch</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksMessageFormat">
<source>Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</source>
<target state="new">Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</target>
<target state="translated">No use aserciones en bloques catch porque es posible que no produzcan un error en la prueba si no se produce ninguna excepción</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksDescription">
<source>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.</source>
<target state="new">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.</target>
<target state="translated">El uso de aserciones en bloques catch es problemático porque la prueba se superará incluso aunque no se produzca ninguna excepción y el bloque catch nunca se ejecuta. Use "Assert.Throws", "Assert.ThrowsExactly", "Assert.ThrowsAsync" o "Assert.ThrowsExactlyAsync" para comprobar que se produzca una excepción y, a continuación, realice aserciones adicionales en la excepción detectada sin usar el bloque try-catch.</target>
<note />
</trans-unit>
</body>
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 @@ -991,17 +991,17 @@ The type declaring these methods should also respect the following rules:
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksTitle">
<source>Do not use asserts in catch blocks</source>
<target state="new">Do not use asserts in catch blocks</target>
<target state="translated">catch ブロックでアサートを使用しないでください</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksMessageFormat">
<source>Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</source>
<target state="new">Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</target>
<target state="translated">例外がスローされない場合、テストに失敗しない可能性があるため、catch ブロックでアサートを使用しないでください</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksDescription">
<source>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.</source>
<target state="new">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.</target>
<target state="translated">catch ブロックでアサートを使用すると、例外がスローされず、catch ブロックが実行されなくてもテストが成功するため、問題があります。'Assert.Throws''Assert.ThrowsExactly''Assert.ThrowsAsync'、または 'Assert.ThrowsExactlyAsync' を使用して例外がスローされたことを確認し、try-catch ブロックを使用せずにキャッチされた例外に対して追加のアサートを実行します。</target>
<note />
</trans-unit>
</body>
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 @@ -991,17 +991,17 @@ The type declaring these methods should also respect the following rules:
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksTitle">
<source>Do not use asserts in catch blocks</source>
<target state="new">Do not use asserts in catch blocks</target>
<target state="translated">catch 블록에서 어설션 사용 안 함</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksMessageFormat">
<source>Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</source>
<target state="new">Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</target>
<target state="translated">예외가 발생하지 않으면 테스트가 실패하지 않을 수 있으니 catch 블록에서 어설션을 사용하지 마세요.</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksDescription">
<source>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.</source>
<target state="new">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.</target>
<target state="translated">예외가 발생하지 않고 catch 블록이 실행되지 않더라도 테스트가 통과하기 때문에 catch 블록에서 어설션을 사용하는 것은 문제가 됩니다. 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' 또는 'Assert.ThrowsExactlyAsync'를 사용하여 예외가 발생했는지 확인한 다음 try-catch 블록을 사용하지 않고 catch된 예외에 대해 추가 어설션을 만듭니다.</target>
<note />
</trans-unit>
</body>
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 @@ -991,17 +991,17 @@ Typ deklarujący te metody powinien również przestrzegać następujących regu
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksTitle">
<source>Do not use asserts in catch blocks</source>
<target state="new">Do not use asserts in catch blocks</target>
<target state="translated">Nie używaj asercji w blokach catch</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksMessageFormat">
<source>Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</source>
<target state="new">Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</target>
<target state="translated">Nie używaj asercji w blokach catch, ponieważ test może nie zakończyć się niepowodzeniem, jeśli nie zostanie zgłoszony żaden wyjątek</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksDescription">
<source>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.</source>
<target state="new">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.</target>
<target state="translated">Używanie asercji w blokach catch jest problematyczne, ponieważ test zakończy się powodzeniem, nawet jeśli nie zostanie zgłoszony żaden wyjątek i blok catch nigdy nie zostanie wykonany. Użyj instrukcji „Assert.Throws”, „Assert.ThrowsExactly”, „Assert.ThrowsAsync” lub „Assert.ThrowsExactlyAsync”, aby sprawdzić, czy zgłoszono wyjątek, a następnie wykonaj dodatkowe asercje dla przechwyconego wyjątku bez użycia bloku try-catch.</target>
<note />
</trans-unit>
</body>
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 @@ -991,17 +991,17 @@ O tipo que declara esses métodos também deve respeitar as seguintes regras:
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksTitle">
<source>Do not use asserts in catch blocks</source>
<target state="new">Do not use asserts in catch blocks</target>
<target state="translated">Não usar assertivas em blocos catch</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksMessageFormat">
<source>Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</source>
<target state="new">Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</target>
<target state="translated">Não use assertivas em blocos catch porque elas podem não falhar no teste se nenhuma exceção for lançada</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksDescription">
<source>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.</source>
<target state="new">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.</target>
<target state="translated">Usar assertivas em blocos catch é problemático porque o teste será aprovado mesmo que nenhuma exceção seja lançada e o bloco catch nunca seja executado. Use 'Assert.Throws', 'Assert.ThrowsExactly', 'Assert.ThrowsAsync' ou 'Assert.ThrowsExactlyAsync' para verificar se uma exceção foi lançada e, em seguida, faça asserções adicionais sobre a exceção capturada sem usar o bloco try-catch.</target>
<note />
</trans-unit>
</body>
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 @@ -993,17 +993,17 @@ Bu yöntemleri bildiren tipin ayrıca aşağıdaki kurallara uyması gerekir:
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksTitle">
<source>Do not use asserts in catch blocks</source>
<target state="new">Do not use asserts in catch blocks</target>
<target state="translated">Catch bloklarında assert kullanmayın</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksMessageFormat">
<source>Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</source>
<target state="new">Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</target>
<target state="translated">Catch bloklarında assert kullanmayın, çünkü özel durum atılmadığında test başarısız olmayabilir</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksDescription">
<source>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.</source>
<target state="new">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.</target>
<target state="translated">Catch bloklarında assert kullanmak sorunludur, çünkü özel durum atılmasa ve catch bloğu hiç çalıştırılmasa bile test geçecektir. Bir özel durumun atıldığını doğrulamak için ‘Assert.Throws’, ‘Assert.ThrowsExactly’, ‘Assert.ThrowsAsync’ veya ‘Assert.ThrowsExactlyAsync’ kullanın ve ardından try-catch bloğu kullanmadan yakalanan özel durum üzerinde ek doğrulamalar yapın.</target>
<note />
</trans-unit>
</body>
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 @@ -991,17 +991,17 @@ The type declaring these methods should also respect the following rules:
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksTitle">
<source>Do not use asserts in catch blocks</source>
<target state="new">Do not use asserts in catch blocks</target>
<target state="translated">不要在 catch 块中使用断言</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksMessageFormat">
<source>Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</source>
<target state="new">Do not use asserts in catch blocks because they may not fail the test if no exception is thrown</target>
<target state="translated">不要在 catch 块中使用断言,因为如果没有引发异常,断言可能不会导致测试失败</target>
<note />
</trans-unit>
<trans-unit id="AvoidAssertsInCatchBlocksDescription">
<source>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.</source>
<target state="new">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.</target>
<target state="translated">在 catch 块中使用断言是有问题的,因为即使没有引发异常且 catch 块从未执行,测试也会通过。请使用 "Assert.Throws"、"Assert.ThrowsExactly"、"Assert.ThrowsAsync" 或 "Assert.ThrowsExactlyAsync" 来验证是否引发了异常,然后对捕获的异常进行额外断言,而无需使用 try-catch 块。</target>
<note />
</trans-unit>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@ Real: {2}</target>
</trans-unit>
<trans-unit id="IsInRangeFail">
<source>Value '{0}' is not within the expected range [{1}..{2}]. {3}</source>
<target state="new">Value '{0}' is not within the expected range [{1}..{2}]. {3}</target>
<target state="translated">El valor "{0}" no está dentro del rango esperado [{1}..{2}]. {3}</target>
<note />
</trans-unit>
<trans-unit id="IsInRangeMaxValueMustBeGreaterThanMinValue">
<source>The maximum value must be greater than the minimum value.</source>
<target state="new">The maximum value must be greater than the minimum value.</target>
<target state="translated">El valor máximo debe ser mayor que el valor mínimo.</target>
<note />
</trans-unit>
<trans-unit id="IsInstanceOfFailMsg">
Expand Down
Loading