Skip to content
Open
2 changes: 1 addition & 1 deletion src/Analyzers/MSTest.Analyzers/xlf/Resources.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ Typ deklarující tyto metody by měl také respektovat následující pravidla:
</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. The rule also flags 'throw new AssertFailedException(...)' and 'throw new AssertInconclusiveException(...)' (the desugared forms of 'Assert.Fail' and 'Assert.Inconclusive'). 'Assert.Inconclusive' (and 'throw new AssertInconclusiveException(...)') is exempt when used inside a filtered catch ('catch (...) when (...)'), because demoting a caught failure to an Inconclusive outcome is the only use case that cannot be expressed without a catch block. For other intentional bypasses (for example, attaching a runtime-built message to the failure), suppress the diagnostic with '#pragma warning disable MSTEST0058'.</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. The rule also flags 'throw new AssertFailedException(...)' and 'throw new AssertInconclusiveException(...)' (the desugared forms of 'Assert.Fail' and 'Assert.Inconclusive'). 'Assert.Inconclusive' (and 'throw new AssertInconclusiveException(...)') is exempt when used inside a filtered catch ('catch (...) when (...)'), because demoting a caught failure to an Inconclusive outcome is the only use case that cannot be expressed without a catch block. For other intentional bypasses (for example, attaching a runtime-built message to the failure), suppress the diagnostic with '#pragma warning disable MSTEST0058'.</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. Pravidlo také označí výjimku throw new AssertFailedException(...) a throw new AssertInconclusiveException(...). (asynchronní tvary Assert.Fail a Assert.Inconclusive). Assert.Inconclusive (a throw new AssertInconclusiveException(...)) se vyloučí při použití uvnitř filtrovaného catch ('catch (...) when (...)'), protože snížení úrovně zachyceného selhání na neprůkazný výsledek je jediný případ použití, který se nedá vyjádřit bez bloku catch. U jiných záměrných obejití (například při připojení zprávy sestavené za běhu k selhání) potlačte diagnostiku pomocí „#pragma warning disable MSTEST0058.</target>
<note />
</trans-unit>
<trans-unit id="DoNotUseParallelizeAndDoNotParallelizeTogetherDescription">
Expand Down
2 changes: 1 addition & 1 deletion src/Analyzers/MSTest.Analyzers/xlf/Resources.pl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ Typ deklarujący te metody powinien również przestrzegać następujących regu
</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. The rule also flags 'throw new AssertFailedException(...)' and 'throw new AssertInconclusiveException(...)' (the desugared forms of 'Assert.Fail' and 'Assert.Inconclusive'). 'Assert.Inconclusive' (and 'throw new AssertInconclusiveException(...)') is exempt when used inside a filtered catch ('catch (...) when (...)'), because demoting a caught failure to an Inconclusive outcome is the only use case that cannot be expressed without a catch block. For other intentional bypasses (for example, attaching a runtime-built message to the failure), suppress the diagnostic with '#pragma warning disable MSTEST0058'.</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. The rule also flags 'throw new AssertFailedException(...)' and 'throw new AssertInconclusiveException(...)' (the desugared forms of 'Assert.Fail' and 'Assert.Inconclusive'). 'Assert.Inconclusive' (and 'throw new AssertInconclusiveException(...)') is exempt when used inside a filtered catch ('catch (...) when (...)'), because demoting a caught failure to an Inconclusive outcome is the only use case that cannot be expressed without a catch block. For other intentional bypasses (for example, attaching a runtime-built message to the failure), suppress the diagnostic with '#pragma warning disable MSTEST0058'.</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. Reguła oznacza również „throw new AssertFailedException(...)” i „throw new AssertInconclusiveException(...)” (usunięte formy „Assert.Fail” i „Assert.Inconclusive”). Element „Assert.Inconclusive” (i „throw new AssertInconclusiveException(...)”) jest wykluczony, gdy jest używany wewnątrz przefiltrowanego polecenia catch („catch (...) when (...)”), ponieważ obniżenie przechwyconego błędu do niejednoznacznego wyniku jest jedynym przypadkiem użycia, którego nie można wyrazić bez bloku catch. W przypadku innych celowych obejść (na przykład dołączenia komunikatu utworzonego w środowisku uruchomieniowym do awarii) pomiń diagnostykę za pomocą polecenia „#pragma ostrzeżenie wyłącz MSTEST0058”.</target>
<note />
</trans-unit>
<trans-unit id="DoNotUseParallelizeAndDoNotParallelizeTogetherDescription">
Expand Down
2 changes: 1 addition & 1 deletion src/Analyzers/MSTest.Analyzers/xlf/Resources.tr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ Bu yöntemleri bildiren tipin ayrıca aşağıdaki kurallara uyması gerekir:
</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. The rule also flags 'throw new AssertFailedException(...)' and 'throw new AssertInconclusiveException(...)' (the desugared forms of 'Assert.Fail' and 'Assert.Inconclusive'). 'Assert.Inconclusive' (and 'throw new AssertInconclusiveException(...)') is exempt when used inside a filtered catch ('catch (...) when (...)'), because demoting a caught failure to an Inconclusive outcome is the only use case that cannot be expressed without a catch block. For other intentional bypasses (for example, attaching a runtime-built message to the failure), suppress the diagnostic with '#pragma warning disable MSTEST0058'.</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. The rule also flags 'throw new AssertFailedException(...)' and 'throw new AssertInconclusiveException(...)' (the desugared forms of 'Assert.Fail' and 'Assert.Inconclusive'). 'Assert.Inconclusive' (and 'throw new AssertInconclusiveException(...)') is exempt when used inside a filtered catch ('catch (...) when (...)'), because demoting a caught failure to an Inconclusive outcome is the only use case that cannot be expressed without a catch block. For other intentional bypasses (for example, attaching a runtime-built message to the failure), suppress the diagnostic with '#pragma warning disable MSTEST0058'.</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. Kural ayrıca 'throw new AssertFailedException(...)' ve 'throw new AssertInconclusiveException(...)' ('Assert.Fail' ve 'Assert.Inconclusive' ifadelerinin açılmış biçimleri) ifadelerini de işaretler. Yakalanan bir hatayı Inconclusive sonucuna düşürmek, catch bloğu olmadan ifade edilemeyen tek kullanım senaryosu olduğundan, 'Assert.Inconclusive' ve 'throw new AssertInconclusiveException(...)', filtreli bir catch ('catch (...) when (...)') içinde kullanıldığında bu kuraldan muaftır. Diğer kasıtlı atlamalar için (örneğin hataya çalışma zamanında oluşturulan bir ileti eklemek), tanılamayı '#pragma warning disable MSTEST0058' ile gizleyin.</target>
<note />
</trans-unit>
<trans-unit id="DoNotUseParallelizeAndDoNotParallelizeTogetherDescription">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,67 +29,67 @@
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingCompleteRunFailed">
<source>Azure DevOps live publishing failed to complete the test run.</source>
<target state="new">Azure DevOps live publishing failed to complete the test run.</target>
<target state="translated">Publikowanie na żywo w usłudze Azure DevOps nie może ukończyć przebiegu testu.</target>
<note />
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingCreateRunFailed">
<source>Azure DevOps live publishing failed to create the test run.</source>
<target state="new">Azure DevOps live publishing failed to create the test run.</target>
<target state="translated">Publikowanie na żywo w usłudze Azure DevOps nie może utworzyć przebiegu testu.</target>
<note />
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingFailedToDeleteCoordinationFile">
<source>Azure DevOps live publishing failed to delete coordination file</source>
<target state="new">Azure DevOps live publishing failed to delete coordination file</target>
<target state="translated">Publikowanie na żywo w usłudze Azure DevOps nie może usunąć pliku koordynacji</target>
<note />
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingFinalizeWaitTimedOut">
<source>Azure DevOps live publishing timed out after {0} waiting for {1} participant file(s); finalizing the run anyway.</source>
<target state="new">Azure DevOps live publishing timed out after {0} waiting for {1} participant file(s); finalizing the run anyway.</target>
<target state="translated">Publikowanie na żywo w usłudze Azure DevOps przekroczyło limit czasu po {0} oczekiwaniu na pliki uczestników w liczbie {1}; mimo to zakończono przebieg.</target>
<note />
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingHttpError">
<source>Azure DevOps REST API request failed with status code {0}. Response: {1}</source>
<target state="new">Azure DevOps REST API request failed with status code {0}. Response: {1}</target>
<target state="translated">Żądanie interfejsu API REST usługi Azure DevOps nie powiodło się. Kod stanu: {0}. Odpowiedź: {1}</target>
<note />
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingInvalidResponse">
<source>Azure DevOps REST API returned an unexpected response payload.</source>
<target state="new">Azure DevOps REST API returned an unexpected response payload.</target>
<target state="translated">Interfejs API REST usługi Azure DevOps zwrócił nieoczekiwany ładunek odpowiedzi.</target>
<note />
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingMissingConfiguration">
<source>'--publish-azdo-test-results' was set, but Azure DevOps live publishing is disabled because the following environment variables are missing or invalid: {0}.</source>
<target state="new">'--publish-azdo-test-results' was set, but Azure DevOps live publishing is disabled because the following environment variables are missing or invalid: {0}.</target>
<target state="translated">Ustawiono parametr „--publish-azdo-test-results”, ale publikowanie na żywo w usłudze Azure DevOps jest wyłączone, ponieważ brakuje następujących zmiennych środowiskowych lub są one nieprawidłowe: {0}.</target>
<note>{Locked='--publish-azdo-test-results'}</note>
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingMissingRunIdFile">
<source>Azure DevOps live publishing could not locate azdo-runid.&lt;buildId&gt;.json for the shared run.</source>
<target state="new">Azure DevOps live publishing could not locate azdo-runid.&lt;buildId&gt;.json for the shared run.</target>
<target state="translated">Publikowanie na żywo w usłudze Azure DevOps nie może zlokalizować pliku azdo-runid.&lt;buildId&gt;.json dla przebiegu udostępnionego.</target>
<note>{Locked="azdo-runid.&lt;buildId&gt;.json"}</note>
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingPublishResultsFailed">
<source>Azure DevOps live publishing failed to publish test results.</source>
<target state="new">Azure DevOps live publishing failed to publish test results.</target>
<target state="translated">Publikowanie na żywo w usłudze Azure DevOps nie może opublikować wyników testu.</target>
<note />
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingRequestFailed">
<source>Azure DevOps REST API request failed after all retries.</source>
<target state="new">Azure DevOps REST API request failed after all retries.</target>
<target state="translated">Żądanie interfejsu API REST usługi Azure DevOps nie powiodło się po wszystkich ponownych próbach.</target>
<note />
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingRunIdFileMismatch">
<source>Azure DevOps live publishing found an azdo-runid.&lt;buildId&gt;.json file for a different Azure DevOps project.</source>
<target state="new">Azure DevOps live publishing found an azdo-runid.&lt;buildId&gt;.json file for a different Azure DevOps project.</target>
<target state="translated">Publikowanie na żywo w usłudze Azure DevOps znalazło plik azdo-runid.&lt;buildId&gt;.json dla innego projektu usługi Azure DevOps.</target>
<note>{Locked="azdo-runid.&lt;buildId&gt;.json"}</note>
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingTimeoutErrorMessage">
<source>Timeout</source>
<target state="new">Timeout</target>
<target state="translated">Limit czasu</target>
<note />
</trans-unit>
<trans-unit id="AzureDevOpsLivePublishingTimeoutErrorMessageWithReason">
<source>Timeout: {0}</source>
<target state="new">Timeout: {0}</target>
<target state="translated">Limit czasu: {0}</target>
<note />
</trans-unit>
<trans-unit id="AzureDevOpsQuarantineFileRequiresAzureDevOps">
Expand Down Expand Up @@ -184,17 +184,17 @@
</trans-unit>
<trans-unit id="PublishAzdoRunNameOptionDescription">
<source>Custom Azure DevOps test run name for live test-result publishing.</source>
<target state="new">Custom Azure DevOps test run name for live test-result publishing.</target>
<target state="translated">Niestandardowa nazwa przebiegu testu usługi Azure DevOps na potrzeby publikowania wyników testów na żywo.</target>
<note />
</trans-unit>
<trans-unit id="PublishAzdoRunNameRequiresPublishAzdoTestResults">
<source>'--publish-azdo-run-name' requires '--publish-azdo-test-results' to be enabled</source>
<target state="new">'--publish-azdo-run-name' requires '--publish-azdo-test-results' to be enabled</target>
<target state="translated">Element „--publish-azdo-run-name” wymaga włączenia polecenia „--publish-azdo-test-results</target>
<note>{Locked='--publish-azdo-run-name'}{Locked='--publish-azdo-test-results'}</note>
</trans-unit>
<trans-unit id="PublishAzdoTestResultsOptionDescription">
<source>Publish test results live to the Azure DevOps Tests tab.</source>
<target state="new">Publish test results live to the Azure DevOps Tests tab.</target>
<target state="translated">Publikuj wyniki testu na żywo na karcie Testy usługi Azure DevOps.</target>
<note />
</trans-unit>
<trans-unit id="QuarantineFileLoadFailedWarning">
Expand Down
Loading
Loading