Skip to content

TestMethod in a struct doesn't trigger analyzer warning #5621

Open
@Youssef1313

Description

@Youssef1313

Describe the bug

public struct TestClass1
{
    [TestMethod]
    public void TestMethod1()
    {
    }
}

This snippet should produce a warning.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions