简体   繁体   中英

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. I've tried installing Microsoft.biz.testingtools from nugget packages but don't have the assert class available to use. I'm using visual studio web express and writing in c#.

It appeared the asked had forgotten to add the reference to Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll to his project. The compiler is unable to find a imported namespace if you do not reference the project or dll where to find it.

You can add the reference to the UnitTestFramework.dll file by looking in your solution explore and right clicking on the 'reference' folder. Then choose 'Add Reference...'. The dll can be found under in Assemblies > Extensions in the form that opens.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM