Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Jul 24, 2024
1 parent 16535cb commit c3fa984
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public class UnitTest1
The MSTest framework introduced <xref:Microsoft.VisualStudio.TestTools.UnitTesting.ExpectedExceptionAttribute> for marking a test method to expect an exception of a specific type. The test will pass if the expected exception is thrown and the exception message matches the expected message.

> [!WARNING]
> This attribute exists for backward compatibility and is not recommended for new tests. Instead, use the [Assert.ThrowsException]<xref:Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowsException> method.
> This attribute exists for backward compatibility and is not recommended for new tests. Instead, use the `Assert.ThrowsException` method.
## Metadata attributes

Expand Down

0 comments on commit c3fa984

Please sign in to comment.