Skip to content

Add code fix for MSTEST0031 — DoNotUseSystemDescriptionAttribute #7897

@Evangelink

Description

@Evangelink

Priority: High
Estimated Effort: Small

DoNotUseSystemDescriptionAttributeAnalyzer warns when [System.ComponentModel.Description("...")] is applied to a test method (instead of MSTest's own description mechanism). A code fix can automatically replace [Description("text")] (with using System.ComponentModel) with [TestMethod(DisplayName = "text")] or the appropriate MSTest description attribute.

File to create: src/Analyzers/MSTest.Analyzers.CodeFixes/DoNotUseSystemDescriptionAttributeFixer.cs

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions