You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test packages seem to require the Analyzer ID to start with "AD", otherwise AanyzerTests.VerifyDiagnosticsAsync seems to exclude the expected diagnostics:
The test packages seem to require the Analyzer ID to start with "AD", otherwise AanyzerTests.VerifyDiagnosticsAsync seems to exclude the expected diagnostics ...
This code is part of VerifyGeneratedCodeDiagnosticsAsync, where the following comment is automatically added to the top of the file:
// <auto-generated>
When this file is present, analyzer diagnostics are generally expected to not be reported because users will not be able to fix them. For additional details and the available approaches to resolve this, see #422 (comment).
This was fixed by #569. If the analyzer calls ConfigureGeneratedCodeAnalysis, then the expected test result will adhere to that configuration without needing to specify TestBehaviors.SkipGeneratedCodeCheck.
Visual Studio Community Version 16.6.0 C# Analyzer templates test package uses new packages (version 1.0.1-beta1.*):
Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.MSTest
Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.MSTest
Microsoft.CodeAnalysis.CSharp.CodeRefactoring.Testing.MSTest
The test packages seem to require the Analyzer ID to start with "AD", otherwise AanyzerTests.VerifyDiagnosticsAsync seems to exclude the expected diagnostics:
Stacktrace:
The text was updated successfully, but these errors were encountered: