Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 8, 2026

The code example demonstrating DynamicDataDisplayName with a custom display name method referenced MethodInfo without including the required using System.Reflection; directive, making the snippet incomplete.

Changes

  • Added using System.Reflection; directive to the DynamicDataDisplayName code example

The example now shows all necessary imports for compilation:

using System.Reflection;

[TestClass]
public class TestClass
{
    [TestMethod]
    [DynamicData(nameof(GetTestData), DynamicDataDisplayName = nameof(GetDisplayName))]
    public void TestMethod(int value1, string value2)
    {
        // Test implementation
    }

    public static string GetDisplayName(MethodInfo methodInfo, object[] data)
    {
        return $"{methodInfo.Name} - {data[0]} and {data[1]}";
    }
}

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Update MSTest attributes and API documentation based on feedback Add missing using directive to DynamicDataDisplayName code example Jan 8, 2026
Copilot AI requested a review from Evangelink January 8, 2026 11:31
@Evangelink Evangelink marked this pull request as ready for review January 8, 2026 11:32
@Evangelink Evangelink merged commit d8205ae into dev/amauryleve/mstest-apis Jan 8, 2026
2 of 3 checks passed
@Evangelink Evangelink deleted the copilot/sub-pr-50979-again branch January 8, 2026 11:32
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.

2 participants