MSTest suppression rules
Rules that support suppressing diagnostics from other rules.
Identifier | Name | Description |
---|---|---|
MSTEST0027 | UseAsyncSuffixTestMethodSuppressor | Suppress the VSTHRD200: Use Async suffix for async methods diagnostic for all test methods as they are not required to follow the naming convention. |
MSTEST0028 | UseAsyncSuffixTestFixtureMethodSuppressor | Suppress the VSTHRD200: Use Async suffix for async methods diagnostic for all test fixture methods as they are not required to follow the naming convention. |
MSTEST0033 | NonNullableReferenceNotInitializedSuppressor | Suppress the CS8618: Non-nullable variable must contain a non-null value when exiting constructor. Consider declaring it as nullable. diagnostic for the TestContext property as its value is always initialized by the MSTest framework. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.