[英]How to add testing tools namespace to visual studio 2013 web express
I am trying to add the namespace Microsoft.VisualStudio.TestTools.UnitTesting to use the assert class in my code. 我试图添加名称空间Microsoft.VisualStudio.TestTools.UnitTesting以在代码中使用assert类。 I've tried installing Microsoft.biz.testingtools from nugget packages but don't have the assert class available to use.
我试过从块包中安装Microsoft.biz.testingtools,但没有断言类可供使用。 I'm using visual studio web express and writing in c#.
我正在使用Visual Studio Web Express并用C#编写。
It appeared the asked had forgotten to add the reference to Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll to his project. 似乎被询问者忘记将对Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll的引用添加到他的项目中。 The compiler is unable to find a imported namespace if you do not reference the project or dll where to find it.
如果您未引用项目或dll在何处找到,则编译器将无法找到导入的名称空间。
You can add the reference to the UnitTestFramework.dll file by looking in your solution explore and right clicking on the 'reference' folder. 您可以通过在解决方案资源管理器中查找并右键单击“ reference”文件夹来将引用添加到UnitTestFramework.dll文件。 Then choose 'Add Reference...'.
然后选择“添加参考...”。 The dll can be found under in Assemblies > Extensions in the form that opens.
可以在打开的表单中的“程序集”>“扩展名”下找到该dll。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.