diff --git a/docs/core/testing/unit-testing-mstest-writing-tests-attributes.md b/docs/core/testing/unit-testing-mstest-writing-tests-attributes.md index fd5a374760344..d329f61d55600 100644 --- a/docs/core/testing/unit-testing-mstest-writing-tests-attributes.md +++ b/docs/core/testing/unit-testing-mstest-writing-tests-attributes.md @@ -394,7 +394,7 @@ public class UnitTest1 The MSTest framework introduced 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] method. +> This attribute exists for backward compatibility and is not recommended for new tests. Instead, use the `Assert.ThrowsException` method. ## Metadata attributes