The techie in me RSS 2.0
 Wednesday, January 18, 2006
Converting your pretty good old test cases from Nunit to VS test cases is not as simple as posted in many blogs.
I tried to convert my test cases its really pain guys..
Its not jut renaming the name spaces and setting the alias. The Assert class itself is different. Microsoft Assert class is directly opposite to the Nunit assert classes.
 
For namespace and alias changes the following code is enough.
 
using Microsoft.VisualStudio.TestTools.UnitTesting; 

using TestFixture = Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute; 

using Test = Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute; 

using SetUp = Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute; 

using TearDown = Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute ; 

using TestFixtureSetUp = Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute; 

using TestFixtureTearDown = Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute; 
Related posts:
Wednesday, January 18, 2006 1:22:51 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -
VSTS
Comments are closed.
About me
Name : Rujith Anand Send mail to the author(s)
Archive
<September 2010>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
Blogs I read
Disclaimer

Disclaimer
Postings are provided as is with no warranties, and confer no rights. Opinions expressed here are my own delusions; my employers at best shake their heads and sigh, at worst repudiate the content with extreme prejudice, whenever it manages to appear on their radar.

© Copyright 2010
Rujith Anand

Statistics
Advertisement
All Content © 2010, Rujith Anand