Search code examples
visual-studioxunit

installation of xunit.net in visual studio 2017


i did not find xunit.net Test extensions in visual studio 2017 so what are the other possible ways to find it? or what if i install xUnit.net.TestGenerator?


Solution

  • Here is a complete guide, I only quote the main steps

    1. Open your solution
    2. Right click on the project and select Manage NuGet Packages...
    3. Pick the tab Browse
    4. Search for xunit.
    5. Click install

    Additionally, you might want to install xunit.runner.visualstudio. so the test runner will recognize the tests.