ASP.NET MVC Beta Project cannot generate controller tests correctly in subfolder

I am using VS2008 Team Suite, ASP.NET MVC beta, with TestDriven.Net program installed. When I created my project from a template, it also created the Tests project and put some control tests for the AccountController in a folder inside that project. I have added other controllers and related tests. Howerver, when I right click on a method in the controller and use the "Create Unit Tests" dialog, it fails to create a unit test stub in my existing test class in the project. It creates a new test class file with the same name at the root of the test project, but does not insert a test stub. If I move my control tests one level from the controllers folder in the test project, it works fine.

Does anyone else see this behavior or is it something to do with my specific setup? I wouldn't have noticed, but the project split the tests into a separate folder, which I thought was a good idea. Now when I try to use it, I need to either manually create new tests or unseg the segregation. If it's just me, any ideas on where the behavior can be adjusted to fix this?

I have Visual C# test project

, selected as the default option, with Unit Test

as the only file.

0


source to share


2 answers


Reported as a bug at Codeplex.



0


source


I just tried to do it with the controller I already created. A unit test control class was created in the root (test) project. When I created a test for another class action, the second test was created in the same class.

I don't see individual folders, this test class was created in the root of the test project.



Sorry it didn't help.

0


source







All Articles