MSTEST0035: [DeploymentItem]
can be specified only on test class or test method.
Property | Value |
---|---|
Rule ID | MSTEST0035 |
Title | [DeploymentItem] can be specified only on test class or test method. |
Category | Usage |
Fix is breaking or non-breaking | Non-breaking |
Enabled by default | Yes |
Default severity | Info |
Introduced in version | 3.6.0 |
There is a code fix | No |
Cause
This rule raises a diagnostic when [DeploymentItem]
isn't set on test class or test method.
Rule description
By using [DeploymentItem]
without putting it on test class or test method, it will be ignored.
How to fix violations
Ensure the attribute [DeploymentItem]
is specified on a test class or a test method, otherwise remove the attribute.
When to suppress warnings
It's not recommended to suppress warnings from this rule as the [DeploymentItem]
will be ignored.
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.