How to make Visual Studio 2008 Test Test work?

I would like to use the Test Test Bench in VS2008. Documents and even useful text in the testbed window - right-click on a class in the class view. Further reading indicates that this class should be in a startup project or referenced assembly. I tried this on numerous classes - public, private, static, you name it - in several assemblies (either in the startup project or in the project referenced), and the Create Instance context menu item never appears.

Is anyone lucky with this? Is this a mistake, or am I doing something wrong?

+4
source share
3 answers

I decided!

I had several projects that started when I started (I’m so used to working this way, I didn’t even realize that there was a difference!).

Only one launch project is installed.

+5
source

I can make it work only in the launch project if the project is a console or window application. It does not seem to work with websites.

BTW. I never use it in practice. And after some time playing in the context of trying to figure out why it doesn’t work for you, I now know why! It is very difficult to do something that should be simple in a fully working project.

0
source

I know that you could not get it to work in VS2005 without installing Visual J ++, but this is obviously not a problem since you are using VS2008. Are you sure that you are looking for a view in the class, and not looking at the classes in the Solution View (I know this sounds silly, but it was a problem that I worked with for the first time when I tried to use it).

0
source

Source: https://habr.com/ru/post/1277772/


All Articles