There are a few ways to check if a Roslyn Source Generator works. You can match the code it makes to expected results, or you can run the code it makes to see if it acts the right way.