Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

WPF Community Bloggers

Microsoft MVC and MbUnit

You may recall ScottGu's post about the new feature in latest drop of the MS MVC framework that allows you to pick your unit test framework of choice. With Mix08 now wrapped up and the framework released I can show you what the MbUnit templates look like. You will need either MbUnit 2.4.2 or MbUnit 3.0 alpha 2, early previews of these are available if you really like the edge , but more stable drops are coming, with 2.4.2 installed here is what you will see. When created you would see The test project depends on the name of your project, for example "myproject" would be "myprojecttests" etc. The project is preloaded with your main project and a referance to the MbUnit.Framework dll. For the moment we have a default test for the controller, which looks like. using MbUnit.Framework; [TestFixture] public class HomeControllerTests { [Test] public void About() { // // TODO: Add test logic here // } [Test] public void Index() { // // TODO: Add test logic here // } } Notice default tests for your Read More...
Published Monday, March 10, 2008 4:47 PM by Andrew Stopford's Weblog
Filed under: ,

Comments

No Comments
Anonymous comments are disabled

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us