Instantly start coding roslyn analyzer tests, without having to prepare a new derived class for every test flavor.
Get Started
| Product | Versions |
|---|---|
| .NET Standard |
README
Roslyn analyzer testing extensions
Instantly start coding roslyn analyzer tests, without having to prepare a new derived class for every test flavor.
This project provides solution transforms and extension methods to simpify testing of roslyn analyzers and to ease configuration of the compilation like adding references or changing language version.
It also provides base classes to test incremental generators and diagnostic suppressors with "Microsoft.CodeAnalysis.CSharp.Analyzer.Testing version 1.1.1 and Microsoft.CodeAnalysis.CSharp.Workspaces >= 4.3.1
- Predefined solution transforms to fine tune the test when using object initializer notation
- Extension methods to configure the test using fluent notation
- An
IncrementalSourceGeneratortest to test incremental source generators with"Microsoft.CodeAnalysis.CSharp.Analyzer.Testingversion1.1.1 - An
IncrementalSourceGeneratortest that supports snapshot testing - A
DiagnosticSuppressortest to test diagnostic suppressors withMicrosoft.CodeAnalysis.CSharp.Workspaces>=4.3.1
Downloads by Version
Depended On By
Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.