Testing an incremental generator with snapshot testing: Creating a source generator - Part 2

added by DotNetKicks
12/14/2021 10:39:34 AM

333 Views

In my previous post, I showed in detail how to create a source generator, but I missed out one very important step: testing. In this post I describe one of the ways I like to test my source generators, by running the source generator manually against a known string and evaluating the output.


0 comments