Skip to content

Use correct xref format for TestDataRow#52125

Merged
meaghanlewis merged 6 commits intomainfrom
copilot/fix-cross-reference-links-testdatarow
Mar 9, 2026
Merged

Use correct xref format for TestDataRow#52125
meaghanlewis merged 6 commits intomainfrom
copilot/fix-cross-reference-links-testdatarow

Conversation

Copy link
Contributor

Copilot AI commented Mar 9, 2026

The ## TestDataRow section was using backtick formatting for TestDataRow<T> instead of <xref:...> links, unlike every other type introduced in the same article.

The correct xref for a generic type with one type parameter uses %60 (URL-encoded backtick) + arity. This PR updates the section to use proper xref links throughout.

Changes Made

  • Class link: Changed `TestDataRow<T>` to <xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestDataRow%601> in the section introduction
  • DisplayName property: Added <xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestDataRow%601.DisplayName> to the "Custom display names" bullet point
  • TestCategories property: Added <xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestDataRow%601.TestCategories> to the "Test categories" bullet point

These changes match the pattern already used elsewhere in the docs for generic types (e.g., IEnumerable%601, IOptions%601).

Original prompt

This section details on the original issue you should resolve

<issue_title>Use correct cross-reference links for TestDataRow</issue_title>
<issue_description>### Type of issue

Other (describe below)

Description

Follow-up from: #50979

The following cross-reference (xref) links couldn't be found:

  • xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestDataRow-1
  • xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestDataRow-1.DisplayName
  • xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestDataRow-1.TestCategories

Page URL

https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-mstest-writing-tests-attributes

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/testing/unit-testing-mstest-writing-tests-attributes.md

Document Version Independent Id

45a09de0-80af-30d5-6f7d-67d7e9c90faa

Platform Id

af14a374-3e95-9888-c94b-e82c9e6909fe

Article author

@Evangelink

Metadata

  • ID: 226a7811-aebe-4053-dd68-e222b328bd7c
  • PlatformId: af14a374-3e95-9888-c94b-e82c9e6909fe
  • Service: dotnet-fundamentals

Related Issues</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.


Internal previews

📄 File 🔗 Preview link
docs/core/testing/unit-testing-mstest-writing-tests-data-driven.md Data-driven testing in MSTest

Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix cross-reference links for TestDataRow Use correct xref format for TestDataRow<T> Mar 9, 2026
Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com>
Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com>
Copilot AI changed the title Use correct xref format for TestDataRow<T> Use correct xref format for TestDataRow Mar 9, 2026
Updated the date for the document and enhanced the description of TestDataRow features.
@meaghanlewis meaghanlewis marked this pull request as ready for review March 9, 2026 19:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the MSTest data-driven testing article to use correct xref syntax for the generic TestDataRow<T> type and its members, aligning the section with the rest of the doc’s xref-based API references.

Changes:

  • Replaces the TestDataRow<T> inline code formatting in the section intro with a proper <xref:...> to the generic type.
  • Adds xref links for TestDataRow<T> member properties (DisplayName, TestCategories, and IgnoreMessage) in the feature bullets.
  • Updates ms.date to reflect the edit date.

You can also share your feedback on Copilot code review. Take the survey.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@meaghanlewis meaghanlewis merged commit 511208d into main Mar 9, 2026
11 checks passed
@meaghanlewis meaghanlewis deleted the copilot/fix-cross-reference-links-testdatarow branch March 9, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use correct cross-reference links for TestDataRow

4 participants