Home > Back-end >  roslyn - how to unit test syntax analyzer in combination with source generator
roslyn - how to unit test syntax analyzer in combination with source generator

Time:01-08

All examples I was able to find testing analyzers and source generators separately. But my analyzer sick to attributes, generated by source generator. How I can combine source generator and syntax analyzer in single test run?

CodePudding user response:

Just run generator on compilation and then the analyzer - for example see my take on this here.

  • Related