Follow the technique used [here](https://github.com/davidwengier/SourceGeneratorTemplate/blob/main/SourceGeneratorTests/Tests.cs)