Skip to content

Fix for mstest0002 ignores formatting and swaps modifiers #6468

@nohwnd

Description

@nohwnd

Describe the bug

namespace NonPublicClass
{
    [TestClass]
    internal sealed class Test1
    {
        [TestMethod]
        public void TestMethod1()
        {
        }

        [TestMethod]
        public void TestMethod2()
        {
        }

        [TestMethod]
        public void TestMethod3()
        {
        }
    }
}

class warns on 0002 that is should have correct shape, but the fix looks like this:

Image

which fixes the problem, but makes to code incorrectly formatted and the modifiers are swapped.

version 3.10.3 of mstest.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions