Tests not picked up with XUnit testrunner on Visual Studio on Mac (C#, .net Core)

我与影子孤独终老i 提交于 2019-12-06 14:24:49

My current version of Visual Studio for Mac is (v7.0.1.24) -- this is how I resolved the issue with the internal warnings:

  1. Update the package nugget (located in fileTree sidebar)

  2. Follow the instructions on this page and install the extension. Note the exception for mac:

IMPORTANT: Starting from v0.7.3, please download the .mpack files from https://github.com/xunit/xamarinstudio.xunit/releases Then in Extension Manager you can use "Install from file..." button to manually install this extension.

This let's me run my tests and gives me feedback in the UI:

[TestFixture()]
public class Test
{
    [Test()]
    public void TestCase()
    {
        int a = 100;
        int b = 100;

        Assert.AreEqual(a, b);
    }
}

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!