Unit Test Adapter threw exception: URI formats are

2020-03-26 04:49发布

In Visual Studio 2010 when I create the default test project with the following bare bones code:

<TestClass()>
Public Class UnitTest1

    <TestMethod()>
    Public Sub TestMethod1()

        Assert.AreEqual(1, 1)

    End Sub

End Class

I get the following error:

Unit Test Adapter threw exception:
URI formats are not supported..
-- Exception doesn't have a stack trace --

screenshot

1条回答
欢心
2楼-- · 2020-03-26 05:18
  1. Open up Local.testsettings in your Solution Explorer > Solution Items
    local.testSettings

  2. Go to Deployment and make sure Enabled Deployment is checked (it's unchecked by default)
    Enabled Deployment

查看更多
登录 后发表回答