Why is the xUnit Runner not finding my tests

后端 未结 8 1350
陌清茗
陌清茗 2020-11-27 05:25

I have a xUnit.net Test as follows:

static class MyTestClass
{
    [Fact]
    static void MyTestMethod() 
    {
    }
         


        
8条回答
  •  野性不改
    2020-11-27 05:35

    In my case, in order to see any tests, I had to complete the following steps:

    (All installed through NuGet Package Manager)

    1. Install xUnit v2.0.50727
    2. Install xUnit.extensions v2.0.50727
    3. Navigate to the following link and follow the steps outlined in the documentation: http://xunit.github.io/docs/running-tests-in-vs.html

    I'm using Visual Studio 2013 Premium. (Resharper NOT installed)

提交回复
热议问题