Download this extension from the VS Gallery or get the CI build.
This extension allows to migrate a test suite written with MSTest to XUnit.net 2. It is based on dotnet/codeformatter with some additional converters. The dotnet converter didn't remove some elements and were letting too much manual refactoring that could have still been automated.
See the changelog for changes and roadmap.
- Removes TestClass attribute
- Replace MSTest Asserts calls with XUnit.Asserts calls
- Replace Ignore attributes with Skipped Fact attributes
- Replace TestCategory attributes with Trait attributes
- Replace ExpectedException with Assert.Throws<> wrapped block
- Remove MSTest reference and add XUnit nuget packages
Before launching the command:
After the command:
Before launching the command:
After the command:
Before launching the command:
After the command:
Before launching the command:
After the command:
Before launching the command:
After the command:
Before launching the command:
After the command:
For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project.