roslyn-sdk
roslyn-sdk copied to clipboard
How to test SourceGenerators using Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing?
I could not not find any documentation on how to use Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing. I only found https://github.com/dotnet/roslyn-sdk/blob/main/src/Microsoft.CodeAnalysis.Testing/README.md which covers testing analyzers.
Looking at the classes my best guess is that you are supposed to have your test classes extend SourceGeneratorTest, but I don't really know what that would do nor do I know what type parameters to pass in (as TVerifier).
Could anyone point me in the right direction or to some documentation?