Use correct xref format for TestDataRow#52125
Merged
meaghanlewis merged 6 commits intomainfrom Mar 9, 2026
Merged
Conversation
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
meaghanlewis
reviewed
Mar 9, 2026
docs/core/testing/unit-testing-mstest-writing-tests-data-driven.md
Outdated
Show resolved
Hide resolved
meaghanlewis
reviewed
Mar 9, 2026
docs/core/testing/unit-testing-mstest-writing-tests-data-driven.md
Outdated
Show resolved
Hide resolved
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.
Contributor
There was a problem hiding this comment.
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, andIgnoreMessage) in the feature bullets. - Updates
ms.dateto reflect the edit date.
You can also share your feedback on Copilot code review. Take the survey.
docs/core/testing/unit-testing-mstest-writing-tests-data-driven.md
Outdated
Show resolved
Hide resolved
Youssef1313
approved these changes
Mar 9, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
meaghanlewis
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
## TestDataRowsection was using backtick formatting forTestDataRow<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
`TestDataRow<T>`to<xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestDataRow%601>in the section introduction<xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestDataRow%601.DisplayName>to the "Custom display names" bullet point<xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestDataRow%601.TestCategories>to the "Test categories" bullet pointThese changes match the pattern already used elsewhere in the docs for generic types (e.g.,
IEnumerable%601,IOptions%601).Original prompt
🔒 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