Unit Test Adapter threw exception: URI formats are not supported

半腔热情 提交于 2019-12-01 07:21:54

问题


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 --


回答1:


  1. Open up Local.testsettings in your Solution Explorer > Solution Items

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



来源:https://stackoverflow.com/questions/27509543/unit-test-adapter-threw-exception-uri-formats-are-not-supported

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