dotnet/roslyn-sdk

Suppressor testing broken when using Microsoft.CodeAnalysis platform 4.x

tom-englert opened this issue · 1 comments

When using Microsoft.CodeAnalysis platform 4.x, diagnostic suppressor testing is not possible; suppressed diagnostics are simply swallowed, so testing against .WithIsSuppressed(true), will always fail.

See https://github.com/tom-englert/roslyn-sdk/tree/Issue%231078-Demo.
DiagnosticSuppressorTests fail in net6.0 with CodeAnalysis 4.5.0