dotnet / roslyn-analyzers

MIT License
1.58k stars 464 forks source link

Highlight C# code in unit tests #7335

Closed JakeYallop closed 2 months ago

JakeYallop commented 3 months ago

Adds [StringSyntax("C#-test")] to verifier classes to enable syntax highlighting for embedded C# code in visual studio.

Before: devenv_lvavli5AG6

After: devenv_iOb5umXDDJ

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.49%. Comparing base (43709af) to head (26e5bd1). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7335 +/- ## ======================================= Coverage 96.49% 96.49% ======================================= Files 1443 1443 Lines 345799 345799 Branches 11374 11374 ======================================= + Hits 333665 333675 +10 + Misses 9251 9242 -9 + Partials 2883 2882 -1 ```