On 2021/01/14, the cookbook got some instructions on how to unit test:
https://github.com/dotnet/roslyn/blob/main/docs/features/source-generators.cookbook.md#unit-testing-of-generators
dotnet/roslyn#44075
That would definitely be better than what I do now. (Open a project and build, then navigate to generated source to see if it looks right.)
On 2021/01/14, the cookbook got some instructions on how to unit test:
https://github.com/dotnet/roslyn/blob/main/docs/features/source-generators.cookbook.md#unit-testing-of-generators
dotnet/roslyn#44075
That would definitely be better than what I do now. (Open a project and build, then navigate to generated source to see if it looks right.)