Commit 9043c1b
Suppress MSTEST0003 for the private manual PnP helper in UnitTest
TestPnpPropertiesInLoop is a manual stress helper kept private so MSTest doesn't auto-run it (PnP enumeration is environment-dependent). The MSTest analyzer flags MSTEST0003 ('test method signature is invalid') because a [TestMethod] must be public. Keep the method private (preserving behavior - it is never auto-discovered) and the [TestMethod] for easy ad-hoc runs, wrapping it in a scoped pragma to suppress MSTEST0003 with an explanatory comment.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5df4f06 commit 9043c1b
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4409 | 4409 | | |
4410 | 4410 | | |
4411 | 4411 | | |
| 4412 | + | |
| 4413 | + | |
| 4414 | + | |
| 4415 | + | |
4412 | 4416 | | |
4413 | 4417 | | |
4414 | 4418 | | |
| |||
4417 | 4421 | | |
4418 | 4422 | | |
4419 | 4423 | | |
| 4424 | + | |
4420 | 4425 | | |
4421 | 4426 | | |
4422 | 4427 | | |
| |||
0 commit comments