GuOrg / Gu.Roslyn.Asserts

Asserts for testing Roslyn analyzers.
MIT License
21 stars 7 forks source link

Add support for Analyzers with Configuration #273

Closed manfred-brands closed 2 years ago

manfred-brands commented 2 years ago

Fixes #272

I choose for adding AnalyzerConfig to Settings, instead of to every overload of RoslynAssert.

Instead of adding new overloads for Settings constructor and CodeFactory.CreateSolution, I decided to add an extra optional parameter. If you prefer the other way using overloads, let me know and I will update the PR.

A few quirks of Roslyn API:

JohanLarsson commented 2 years ago

Very nice!

JohanLarsson commented 2 years ago

Release nuget now or do you have more things lined up?

manfred-brands commented 2 years ago

Now would be good. Thanks.