Skip to content

Commit

Permalink
Reword
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Jan 17, 2025
1 parent 0a39035 commit 4177e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/core/testing/mstest-analyzers/mstest0040.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The use of any assertion method in an `async void` method, local function, or la

## Rule description

Exceptions that are thrown in an `async void` context are unobserved. So, a failing assertion in an `async void` method may go unnoticed. When using VSTest, such exceptions are very likely to be unnoticed. When using Microsoft.Testing.Platform, such exception *may* crash the process
Exceptions that are thrown in an `async void` context are unhandled. A failing assertion in an `async void` method will be swallowed and will not crash the process when using VSTest under .NET Framework, and may crash the process when using Microsoft.Testing.Platform or VSTest under modern .NET.

## How to fix violations

Expand Down

0 comments on commit 4177e9e

Please sign in to comment.