Can I add a test project later in the Asp.net MVC project?

Can someone explain to me how to add a test project to an asp.net MVC project after I created them without it.

I am using beta version of ASp.net MVC 2 on VS2008 Dotnetframework 3.5

Thank you in advance

Gabriel

+3
source share
3 answers

Yes, I do this all the time. In VS08:

  • Right-click on a solution in Solution Explorer,
  • Select Add> New Project ...
  • Select "Project Type" from the list on the left (select a Level 1 section, such as Visual C #), then
  • Select a test project from the right panel
  • ( ExistingProjectName.Test, OK
+4

, ; , , MVC.

,

Dan

+3

Note that after adding the default ASP.NET MVC Test Project project, there is no way. That is, you cannot get the sample HomeControllerTests and AccountControllerTests. The easiest way to get this is to add an additional complete ASP.NET MVC Web Application project with tests, and then copy the code.

+2
source

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


All Articles