Skip to content

Conversation

@Youssef1313
Copy link
Member

Fixes #4333

@Youssef1313
Copy link
Member Author

@copilot Please add an MSTest acceptance test for this scneario:

[TestClass]
public class TestClass1
{
    [TestMethod]
    [MyTestMethod]
    public void Test1()
    {
    }

    [TestMethod]
    public void Test2()
    {
    }
}

[TestClass]
[MyTestClass]
public class TestClass2
{
    [TestMethod]
    public void Test1()
    {
    }
}

public class MyTestMethodAttribute : TestMethodAttribute
{
    public MyTestMethodAttribute([CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = -1)
        : base(callerFilePath, callerLineNumber)
    {
    }
}

public class MyTestClass : TestClassAttribute
{
}

Copy link
Contributor

Copilot AI commented Jan 14, 2026

@Youssef1313 I've opened a new pull request, #7224, to work on those changes. Once the pull request is ready, I'll request review from you.

Youssef1313 and others added 3 commits January 14, 2026 12:57
#7224)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
@Youssef1313 Youssef1313 merged commit 3ebef6e into main Jan 15, 2026
10 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/single-attribute branch January 15, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GetFirstAttributeOrDefault implementation isn't consistent with doc comment

3 participants