Darrell Norton's Blog [MVP]

Sponsors

The Lounge

Wicked Cool Jobs

News

  • Darrell Norton pic

    MVP logo

    View Darrell Norton's profile on LinkedIn

    Currently Reading:

    weewar.com

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Convert existing NUnit test harnesses to VS Team System

James Newkirk has a post on converting existing NUnit tests to use the new Visual Studio Team System testing framework. It uses the using statement assignment functionality that I blogged about here.

To convert your code all you have to do is something like this:

// using NUnit.Framework;
using Microsoft.VisualStudio.QualityTools.UnitTesting.Framework;
using TestFixture = Microsoft.VisualStudio.QualityTools.
    UnitTesting.Framework
.TestClassAttribute;
using
Test = Microsoft.VisualStudio.QualityTools.
    UnitTesting.Framework
.TestMethodAttribute;
using
SetUp = Microsoft.VisualStudio.QualityTools.
    UnitTesting.Framework
.TestInitializeAttribute;


Posted Thu, Jun 17 2004 7:40 AM by Darrell Norton

[Advertisement]

Devlicio.us