You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New feature: TextDiff! This simple helper allows you to visualize line-by-line diffs. Used internally when comparing syntax trees and showing the assertion results.
Replace all underscores with dots in the retrieved property names of embedded test cases. This is to allow better mimicking of the file names the test cases are generated from, and by default, make those look more like files with extensions (eg, Component_razor wouldn't be automatically picked up by a generator if it was looking at extensions). Technically this is a behavioral breaking change, but you can simply pass a new optional parameter or override the property name-value accessor methods on the API to bypass/restore this behavior.
Added a certain EmbeddedTestCase that helps with testing complex generator scenarios, including verifying the generated source trees, running scripts inside the generated compilation and running code fixes on them.
There is a small breaking change on PodCSharpCompilation. The first parameter became IEnumerable<SyntaxTree> instead of IEnumerable<string> to allow for greater control over the parameterization (namely, providing file paths to the trees was not possible). If you used the previous version, you can migrate by transforming your source texts to SyntaxTrees by: