Roslynator.Testing.CSharp.MSTest
5.0.0
Prefix Reserved
dotnet add package Roslynator.Testing.CSharp.MSTest --version 5.0.0
NuGet\Install-Package Roslynator.Testing.CSharp.MSTest -Version 5.0.0
<PackageReference Include="Roslynator.Testing.CSharp.MSTest" Version="5.0.0" />
<PackageVersion Include="Roslynator.Testing.CSharp.MSTest" Version="5.0.0" />
<PackageReference Include="Roslynator.Testing.CSharp.MSTest" />
paket add Roslynator.Testing.CSharp.MSTest --version 5.0.0
#r "nuget: Roslynator.Testing.CSharp.MSTest, 5.0.0"
#:package Roslynator.Testing.CSharp.MSTest@5.0.0
#addin nuget:?package=Roslynator.Testing.CSharp.MSTest&version=5.0.0
#tool nuget:?package=Roslynator.Testing.CSharp.MSTest&version=5.0.0
Roslynator.Testing.CSharp.MSTest
Testing framework for unit-testing Roslyn analyzers, refactorings, and code fixes.
Choosing the Roslyn version
This package depends on Microsoft.CodeAnalysis.* with a low minimum version, so it does not force a particular Roslyn version on your test project. Add a reference to the Roslyn version you want your tests to run against - typically the same version your analyzer library is built for:
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" />
The chosen version raises the maximum C# language version the parser can accept (for example, Roslyn 3.8 supports up to C# 9). Test sources still parse at CSharpParseOptions.Default (not Latest) unless you set parse options / LanguageVersion (for example via WithParseOptions and LanguageVersion.Latest).
Usage
Examples in the Roslynator repository:
- Analyzer tests: Analyzers.Tests, CodeAnalysis.Analyzers.Tests, and Formatting.Analyzers.Tests
- Refactoring tests: Refactorings.Tests
- Compiler diagnostic fix tests: CodeFixes.Tests
Feedback
Related Products
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- MSTest.TestFramework (>= 3.1.1)
- Roslynator.Testing.CSharp (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.0 | 35 | 8/21/2026 |
| 4.16.1 | 96 | 8/16/2026 |
| 4.16.0 | 96 | 8/8/2026 |
| 4.15.0 | 973 | 12/14/2025 |
| 4.14.1 | 792 | 10/5/2025 |
| 4.14.0 | 325 | 7/26/2025 |
| 4.13.1 | 311 | 2/23/2025 |
| 4.13.0 | 250 | 2/9/2025 |
| 4.12.11 | 253 | 1/28/2025 |
| 4.12.10 | 271 | 12/17/2024 |
| 4.12.9 | 377 | 10/25/2024 |
| 4.12.8 | 279 | 10/11/2024 |
| 4.12.7 | 284 | 10/1/2024 |
| 4.12.6 | 272 | 9/23/2024 |
| 4.12.5 | 260 | 9/13/2024 |
| 4.12.4 | 466 | 6/1/2024 |
| 4.12.3 | 288 | 5/10/2024 |
| 4.12.2 | 272 | 4/23/2024 |
| 4.12.1 | 268 | 4/15/2024 |
| 4.12.0 | 325 | 3/19/2024 |