File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
core/testing/mstest-analyzers Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ title : " MSTEST0029: Public method should be test method"
3+ description : " Learn about code analysis rule MSTEST0029: Public method should be test method"
4+ ms.date : 04/06/2024
5+ f1_keywords :
6+ - MSTEST0029
7+ - PublicMethodShouldBeTestMethod
8+ helpviewer_keywords :
9+ - PublicMethodShouldBeTestMethod
10+ - MSTEST0029
11+ author : engyebrahim
12+ ms.author : enjieid
13+ ---
14+ # MSTEST0029: Public method should be test method
15+
16+ | Property | Value |
17+ | -------------------------------------| ----------------------------------------------|
18+ | ** Rule ID** | MSTEST0029 |
19+ | ** Title** | Public method should be test method |
20+ | ** Category** | Design |
21+ | ** Fix is breaking or non-breaking** | Non-breaking |
22+ | ** Enabled by default** | No |
23+ | ** Default severity** | Info |
24+ | ** Introduced in version** | 3.5.0 |
25+
26+ ## Cause
27+
28+ A Public method should be a test method.
29+
30+ ## Rule description
31+
32+ A Public method should be a test method (marked with ` [TestMethod] ` ).
33+
34+ ## How to fix violations
35+
36+ Ensure that the public method is a test method (marked with ` [TestMethod] ` ).
37+
38+ ## When to suppress warnings
39+
40+ Do not suppress a warning from this rule. If you ignore this rule, the public method won't be considered as a test method.
Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ items:
101101 href : ../../core/testing/mstest-analyzers/mstest0022.md
102102 - name : MSTEST0025
103103 href : ../../core/testing/mstest-analyzers/mstest0025.md
104+ - name : MSTEST0029
105+ href : ../../core/testing/mstest-analyzers/mstest0029.md
104106 - name : Performance
105107 items :
106108 - name : Overview
You can’t perform that action at this time.
0 commit comments