Vadim's Weblog

Never stop learning.

ASP.NET MVC template for MbUnit tests needs to be fixed.

Posted by Vadim on February 18, 2009

There’re so many new technologies and tools appearing all the time that it’s impossible to keep up. 

First time I looked at ASP.NET MVC framework was more than a year ago when Microsoft just released the first Beta.  I really liked the new web framework for decoupling and testability. However, because I didn’t have any project where I could use it I left it alonge and started playing with some other toys like WPF and Silverlight.  Now my company is starting developing using ASP.NET MVC framework and it’s time for me get familiar with it again.

So I updated my ASP.NET MVC Beta with RC1.  As a next step I created a sample site using ASP.NET MVC Web Application template.

mvc template

When I was asked if I want to create unit tests, I couldn’t say NO.  As a unit test framework I chose MbUnit v3.

mvc mbUnit

After all the default files were generated by the template, I compiled the solution before making any modifications.  I was surprised when the solution failed to compile.   I got the following errors:

mvc errors

As soon as I look at these errors I realized that I’m missing the following using statements:

using System.Web.Mvc;
using MyNamespace.Controllers;

After adding the missing statements, the solution compiled without any problems.

It’s not a hard problem for a developer to correct but I hope that ASP.NET MVC team will fix the template before they ship the final “1.0” release.

kick it on DotNetKicks.com

About these ads

3 Responses to “ASP.NET MVC template for MbUnit tests needs to be fixed.”

  1. Jeff Brown said

    Fixed in v3.0.6.

    BTW, long time no see! :-)

  2. Vadim said

    Jeff,

    I reproduce this behavior with v.3.0.6.662. I’ll try v.3.0.6.678

  3. Jeff Brown said

    I only just fixed it so it will be in the next build. ;-)

    Unfortunately I’m fighting with NCover on the build server again…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: