Question

I was wondering if there's a way (even a manual one) to setup an ASP.NET MVC project with unit tests under Visual Web Developer Express 2008 SP1.

Was it helpful?

Solution

ASP.NET MVC 1.0 (Release version) comes bundled with templates for Visual Web Developer Express 2008. Not sure if SP1 is required or not, though.

OTHER TIPS

Visual Web Developer does not support C# test projects, which essentially a ASP.NET MVC test project is. However you can test your application with Visual C# Express referencing the assembly containing the models and controllers.

For a while I've been using a solution described here. It works like a charm with Visual Web Developer :D Actually it works exactly like the full version of VisualStudio!

It gives you immediate access to NUnit Framework in your unit test project along with NUnit Mocks (I know it's not the best one but it comes with NUnit anyways so there's no point in denying its existence).

You need Visual Web Developer Express 2008 SP1 and, as per the VWDExpress Readme: To see "New Project" and "Open Project" on the File menu, you must manually add these commands to the menu by right-clicking the File menu, clicking "Customize...", selecting the "Commands" tab, selecting the "File" category, and then dragging the "New Project" and "Open Project" to the File menu ...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top