单元测试适配器抛出异常:不支持URI格式 [英] Unit Test Adapter threw exception: URI formats are not supported
本文介绍了单元测试适配器抛出异常:不支持URI格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Visual Studio 2010中,当我创建的默认测试项目有以下裸露的骨头code:
<识别TestClass()>
公共类UnitTest1
&其中; TestMethod的()>
公用Sub TestMethod1()
Assert.AreEqual(1,1)
结束小组
末级
我收到以下错误:
单元测试适配器抛出异常:
不支持的URI格式..
- 异常不具有堆栈跟踪 -
解决方案
-
打开
Local.testsettings
在解决方案资源管理>解决方案项
-
转到部署,确保
已启用部署
检查 (它未选中默认情况下)
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 --
解决方案
Open up
Local.testsettings
in your Solution Explorer > Solution Items
Go to Deployment and make sure
Enabled Deployment
is checked (it's unchecked by default)
这篇关于单元测试适配器抛出异常:不支持URI格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文