When using VS 2010, I like to organize the projects in my solutions by creating them in subfolders in the OS. For example I would place a project called MySolution.Core.Shared in G:\Projects\MySolution\Core\Shared. I will also create a Solution folder in Solution Explorer to hold the project as well. This works well for other templates, but the automated unit test creation process does not. VS always creates the unit test project in the solution’s root folder, so I have to then unload the test project, move the project (after closing VS or I get a file open error for some reason) and then reopen the solution and remount the project in the appropriate point in Solution Explorer.
Share
Well, I was never able to find a true answer to this, but I did find an acceptable solution. Here are the steps I took:
solution folder where you wish to place your new tests and choosing
the Add -> New Project option.
the provided slots.
Tests in the right click menu.
bottom of the resultant dialog box.
Voila! You are done and your unit tests are now nice and snugly placed in your file structure of choice.