Skip to content

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

@Youssef1313

Description

@Youssef1313
Member

Describe the bug

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

This snippet should produce a warning.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

    Participants

    @Evangelink@Youssef1313

    Issue actions

      TestMethod in a struct doesn't trigger analyzer warning · Issue #5621 · microsoft/testfx