Adjust analyzer diagnostic severities and improve MCP001 reporting (#1038)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
This commit is contained in:
parent
af719fc576
commit
b230b17ec9
1 changed files with 17 additions and 14 deletions
|
|
@ -381,7 +381,7 @@ public partial class XmlToDescriptionGeneratorTests
|
|||
|
||||
// Should report MCP002 diagnostic
|
||||
var diagnostic = Assert.Single(result.Diagnostics, d => d.Id == "MCP002");
|
||||
Assert.Equal(DiagnosticSeverity.Warning, diagnostic.Severity);
|
||||
Assert.Equal(DiagnosticSeverity.Info, diagnostic.Severity);
|
||||
Assert.Contains("TestMethod", diagnostic.GetMessage());
|
||||
Assert.Contains("partial", diagnostic.GetMessage());
|
||||
}
|
||||
|
|
@ -412,7 +412,7 @@ public partial class XmlToDescriptionGeneratorTests
|
|||
|
||||
// Should report MCP002 diagnostic because parameter has documentation
|
||||
var diagnostic = Assert.Single(result.Diagnostics, d => d.Id == "MCP002");
|
||||
Assert.Equal(DiagnosticSeverity.Warning, diagnostic.Severity);
|
||||
Assert.Equal(DiagnosticSeverity.Info, diagnostic.Severity);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
@ -441,7 +441,7 @@ public partial class XmlToDescriptionGeneratorTests
|
|||
|
||||
// Should report MCP002 diagnostic because return has documentation
|
||||
var diagnostic = Assert.Single(result.Diagnostics, d => d.Id == "MCP002");
|
||||
Assert.Equal(DiagnosticSeverity.Warning, diagnostic.Severity);
|
||||
Assert.Equal(DiagnosticSeverity.Info, diagnostic.Severity);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
@ -559,7 +559,7 @@ public partial class XmlToDescriptionGeneratorTests
|
|||
|
||||
// Should report MCP002 diagnostic because parameter description would be generated
|
||||
var diagnostic = Assert.Single(result.Diagnostics, d => d.Id == "MCP002");
|
||||
Assert.Equal(DiagnosticSeverity.Warning, diagnostic.Severity);
|
||||
Assert.Equal(DiagnosticSeverity.Info, diagnostic.Severity);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
@ -590,7 +590,7 @@ public partial class XmlToDescriptionGeneratorTests
|
|||
|
||||
// Should report MCP002 diagnostic for prompts too
|
||||
var diagnostic = Assert.Single(result.Diagnostics, d => d.Id == "MCP002");
|
||||
Assert.Equal(DiagnosticSeverity.Warning, diagnostic.Severity);
|
||||
Assert.Equal(DiagnosticSeverity.Info, diagnostic.Severity);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
@ -621,7 +621,7 @@ public partial class XmlToDescriptionGeneratorTests
|
|||
|
||||
// Should report MCP002 diagnostic for resources too
|
||||
var diagnostic = Assert.Single(result.Diagnostics, d => d.Id == "MCP002");
|
||||
Assert.Equal(DiagnosticSeverity.Warning, diagnostic.Severity);
|
||||
Assert.Equal(DiagnosticSeverity.Info, diagnostic.Severity);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
|
|||
Loading…
Reference in a new issue