Meziantou.MsTestToXunitAnalyzer 1.0.1

Prefix Reserved
dotnet add package Meziantou.MsTestToXunitAnalyzer --version 1.0.1
                    
NuGet\Install-Package Meziantou.MsTestToXunitAnalyzer -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Meziantou.MsTestToXunitAnalyzer" Version="1.0.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Meziantou.MsTestToXunitAnalyzer" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Meziantou.MsTestToXunitAnalyzer">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Meziantou.MsTestToXunitAnalyzer --version 1.0.1
                    
#r "nuget: Meziantou.MsTestToXunitAnalyzer, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Meziantou.MsTestToXunitAnalyzer&version=1.0.1
                    
Install Meziantou.MsTestToXunitAnalyzer as a Cake Addin
#tool nuget:?package=Meziantou.MsTestToXunitAnalyzer&version=1.0.1
                    
Install Meziantou.MsTestToXunitAnalyzer as a Cake Tool

Meziantou.MsTestToXunitAnalyzer

This package provides a Roslyn Analyzer to convert MSTest tests to xUnit tests.

Goals:

  • Convert most MSTest attributes to xUnit equivalents
  • Convert most MSTest Assert calls to xUnit Assert calls

This doesn't handle 100% cases as this would not be possible. However, it should handle 90% of the cases.

Installation

NuGet: https://www.nuget.org/packages/Meziantou.MsTestToXunitAnalyzer

dotnet add package Meziantou.MsTestToXunitAnalyzer
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

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
1.0.1 127 2/18/2025
1.0.0 177 1/19/2025