Question

I am using Visual Web Developer 2008 Express with ASP.NET MVC 1.0.

I would like to use MbUnit as a test framework so how would I set this up as a unit test project for an ASP.NET MVC web application?

Was it helpful?

Solution

  1. File -> New -> Project -> Windows -> Class Library
  2. Add a reference to MbUnit.dll (or whatever the name of their library is)
  3. Add a reference to your ASP.NET MVC project
  4. Add a new class file and your test code

The only problem you'll run into now is running the tests. For that you might try something like TestDriven.net or ReSharper.

FYI The latest nUnit includes the features that MbUnit set out to add to unit testing. nUnit also has better integration with VS and various add-ons I believe.

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