Nota
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba mendaftar masuk atau menukar direktori.
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba menukar direktori.
| Property | Value |
|---|---|
| Rule ID | MSTEST0047 |
| Title | Suppress IDE0060 for the TestContext parameter |
| Category | Suppressor |
| Introduced in version | 3.10.0 |
Suppressor description
Suppress the IDE0060: Remove unused parameter diagnostic for the TestContext parameter of fixture methods.
MSTest lets you receive the TestContext as a parameter of fixture methods that are marked with AssemblyInitializeAttribute, ClassInitializeAttribute, GlobalTestInitializeAttribute, or GlobalTestCleanupAttribute. Because the parameter is required by MSTest even when your method body doesn't use it, IDE0060 would otherwise incorrectly flag it as unused.
When to disable suppressor
.NET suppressors cannot be disabled.