cezarypiatek / RoslynTestKit

A lightweight framework for writing unit tests for Roslyn diagnostic analyzers, code fixes, refactorings and completion providers.
Other
24 stars 7 forks source link

Made CodeMarkup public #17

Closed gbtb closed 2 years ago

gbtb commented 2 years ago

Hey.

First of all, thank you for the library, it is really helpful :+1:

I'd like to suggest making CodeMarkup class public. I'm testing code refactoring which operates on multiple files - it should be triggered from one file, and then it adds some code into another file. In order to test it I had to copy CodeMarkup class to my project. Then I was able to use it to mark one source file, used this CodeMarkup to create CodeRefactoringContext, and then use Verify.CodeAction to test it.

cezarypiatek commented 2 years ago

Thanks for contribution, a new version should be released