You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The warning MSTEST0030 only warns when the first method in the class is marked with [TestMethod]. It does not warn if for example there is a [TestInitailize] marked method that comes before a [TestMethod] marked method
Steps To Reproduce
Create solution
Add MsTest unit test project
Add a method Before the default TestMethod1 method as follows
An info (or modified level) diagnostic should appear on the class for MSTEST0030
Actual behavior
No diagnostic is produced for MSTEST0030
Additional context
It does not seem to matter whether the first method is marked with any attribute (as long as it's not marked with [TestMethod]), it just needs to appear before the first [TestMethod] attribute
The text was updated successfully, but these errors were encountered:
Describe the bug
The warning MSTEST0030 only warns when the first method in the class is marked with
[TestMethod]
. It does not warn if for example there is a[TestInitailize]
marked method that comes before a[TestMethod]
marked methodSteps To Reproduce
TestMethod1
method as followsReproduction here: Malachi-Datacom/MSTEST0030-Bug-Repro
Expected behavior
An info (or modified level) diagnostic should appear on the class for
MSTEST0030
Actual behavior
No diagnostic is produced for
MSTEST0030
Additional context
It does not seem to matter whether the first method is marked with any attribute (as long as it's not marked with
[TestMethod]
), it just needs to appear before the first[TestMethod]
attributeThe text was updated successfully, but these errors were encountered: