This post originated from an RSS feed registered with .NET Buzz
by Darrell Norton.
Original Post: Convert existing NUnit test harnesses to VS Team System
Feed Title: Darrell Norton's Blog
Feed URL: /error.htm?aspxerrorpath=/blogs/darrell.norton/Rss.aspx
Feed Description: Agile Software Development: Scrum, XP, et al with .NET
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; usingTestFixture = Microsoft.VisualStudio.QualityTools. UnitTesting.Framework.TestClassAttribute; usingTest = Microsoft.VisualStudio.QualityTools. UnitTesting.Framework.TestMethodAttribute; usingSetUp = Microsoft.VisualStudio.QualityTools. UnitTesting.Framework.TestInitializeAttribute;
This Blog Hosted On: http://www.DotNetJunkies.com/