Converting NUnit Tests to MSTest for CI builds

15. March 2010

So I found a problem that the project I am working on had a bunch of nUnit tests that needed converted to MSTest and I really didn’t want to do a find replace on all the keywords so I did the following.

using Microsoft.VisualStudio.TestTools.UnitTesting;
using TestFixture = Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute;
using Test = Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute;
using TearDown = Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute;
using SetUp = Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute;
using TestFixtureTearDown = Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute;
using TestFixtureSetUp = Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute;
using Explicit = Microsoft.VisualStudio.TestTools.UnitTesting.IgnoreAttribute;

Then you just paste this into the using of your test file, and remove your nUnit references. Bob’s your uncle converted.

Productivity, Testing , ,

Comments

4/12/2010 3:44:56 AM #
Wow congratulation for the changes you have made.Your trick of replacing is really awesome. Any ways congrats again.
4/21/2010 7:05:17 AM #
This post was very nicely written, and it also contains a lot of useful facts. I appreciated your professional way of writing the post. You have made it easy for me to understand.
4/21/2010 7:56:32 AM #
Hi i must say nice blog. I'm thinking about starting a no win no fee solicitors blog, your blog has give me some great tips thanks a lot.
4/21/2010 8:14:27 AM #
A good read, definitely worth a cut and paste. Thanks!
4/21/2010 8:15:00 AM #
Very useful info. Hope to see more posts soon!
4/21/2010 11:31:14 AM #
You really know your stuff... Keep up the good work!
4/21/2010 11:38:31 AM #
I’m impressed, you know what you’re talking about acne treatment
4/21/2010 11:38:47 AM #
You really know your stuff... Keep up the good work!
www.undiscoveredequities.com/top_10_2010.html
4/21/2010 11:39:14 AM #
Don’t stop blogging! It’s nice to read a sane commentary for once
4/21/2010 11:40:35 AM #
Great work buddy, keep it up
4/21/2010 11:44:16 AM #
Insightful piece, thanks a lot!
4/21/2010 11:48:03 AM #
Excellent blog post, I look forward to reading more.
4/21/2010 11:53:57 AM #
Insightful piece, thanks a lot!
4/21/2010 12:52:27 PM #
Awesome post! Interesting info to know
http://www.multotec.com.au
4/21/2010 2:38:50 PM #
castiga bani - Win some money
4/21/2010 5:38:26 PM #
I admit, I have not been on this webpage in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. элитные проститутки Москвы
4/21/2010 6:50:38 PM #
I admit, I have not been on this webpage in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. проститутки Москвы
4/21/2010 9:51:09 PM #
I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. I would like to read newer posts and to share my thoughts with you.  проститутки Москвы
4/21/2010 9:53:08 PM #
Do you have a spam problem  here; I also use Blog Engine, and I was speculating about your experiences; we have developed some nice techniques and we are looking to exchange practices with others, please Email me if interested.
4/21/2010 11:16:59 PM #
Pretty insightful post. Never thought that it was this simple after all. I had spent a good deal of my time looking for someone to explain this subject clearly and you’re the only one that ever did that. Kudos to you! Keep it up
4/21/2010 11:53:43 PM #
Just want to say your article is striking. The clearness in your post is simply spectacular and i can take for granted you are an expert on this field. Well with your permission allow me to grab your rss feed to keep up to date with forthcoming post. Thanks a million and please keep up the effective work. незабываемые проститутки Москвы
4/22/2010 12:00:23 AM #
This is a nice web site.  Good polished UI and nice informative articles. I will be coming back soon, thanks for the great article.
4/22/2010 6:03:44 AM #
Hey everyone. Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Terrific post. Thanks a lot for sharing your thoughts! It is encourging to know that some people still put in an effort into managing their websites. I'll be sure to look in from time to time.
4/22/2010 7:12:48 AM #
Do you have problems with spammers?  I also use Blog Engine and I have some excellent anti-spam techniques; please Email me if you are interested in an exchange of ideas.
4/22/2010 12:37:12 PM #
You really know your stuff... Keep up the good work!
http://www.scanlab.com.au
4/22/2010 2:34:04 PM #
Hey there  I found The Devlineator | Converting NUnit Tests to MSTest for CI builds. I'm promoting my American Job Advocate that is about with jobs in this rough economy.  I don't sell anything on the site.  It's just there to help.  I have resume tips.  Thank you.
4/22/2010 3:37:43 PM #
What you said made a lot of sense.  But, think about this, what if you added a little content?  I mean, I dont want to tell you how to run your blog, but what if you added something to maybe get peoples attention?  Just like a video or a picture or two to get people excited about what youve got to say.  In my opinion, it would make your blog come to life a little bit.
4/22/2010 5:57:32 PM #
I dont know what it is about this blog that turns me off so much, but you just dont seem to get me excited.  I dont know if its the lack of content or just the way you wrote it.  But you really dont seem to understand that your readers may not agree with you.  Youre really just too out there for me.
4/22/2010 9:48:20 PM #
This is a great site.  Good sparkling UI and nice informative articles. I will be coming back in a bit, thanks for the great article.
4/22/2010 10:06:14 PM #
Hi. I just noticed that your blog looks like it has a few code problems at the very bottom of your website's page. I'm not sure if everybody is getting this same bugginess when browsing your blog? I am employing a totally different browser than most people, referred to as Opera, so that is what might be causing it? I just wanted to make sure you know. Thanks for posting some great postings and I'll try to return back with a completely different browser to check things out!
4/23/2010 7:35:33 AM #
You raise many questions in my head; you wrote a good post, but this post is also thought provoking, and I will have to ponder it some more; I will be back soon.
4/23/2010 9:29:32 AM #
I was'nt sure I would like this site since it was about The Devlineator | Converting NUnit Tests to MSTest for CI builds but I was wrong and thought it was cool and found it on Ask . Thanks and I'll be back as you update.
4/23/2010 12:17:55 PM #
Hi just thought i'd inform you some thing. This really is the second time now i have landed in your blog within the last four days hunting for totally unrelated things. Spooky or what?
4/23/2010 12:18:57 PM #
I'm sustaining a bit of problems understanding the ending of the clause. The final paragraph gets interrupted halfway complete. You should have a look at that.Nevertheless, the rest of the read was great!
4/23/2010 3:06:29 PM #
Forwarded this to some friends, appreciate your advice...
4/23/2010 3:31:52 PM #
Just want to say your article is striking. The clearness in your post is simply spectacular and i can take for granted you are an expert on this field. Well with your permission allow me to grab your rss feed to keep up to date with forthcoming post. Thanks a million and please keep up the effective work. незабываемые проститутки Москвы
4/23/2010 3:51:03 PM #
I hope you never stop!  This is one of the best blogs Ive ever read.  Youve got some mad skill here, man.  I just hope that you dont lose your style because youre definitely one of the coolest bloggers out there.  Please keep it up because the internet needs someone like you spreading the word.
4/23/2010 7:35:42 PM #
Thank you for taking this opportunity to discuss  this, I feel  fervently  about this and I enjoy learning about this topic.  If possible, as you gain facts, please add to  this blog with more information.  I have found it very useful.
4/23/2010 7:47:07 PM #
Dude.. I'm not a great deal into reading about unit tests , but somehow I got to read a number of posts on your blog. Its amazing how interesting it is for me to visit you very often.
4/23/2010 8:56:17 PM #
Please tell me that youre going to keep this up!  Its so good and so important.  I cant wait to read more from you.  I just feel like you know so much and know how to make people listen to what you have to say.  This blog is just too cool to be missed.  Great stuff, really.  Please, PLEASE keep it up!
4/23/2010 8:58:32 PM #
For what its worth, the layout is definitely amazing.  You know how to balance writing and images/videos.  However, I cant get over how little you actually bring to light here.  I think that everyones said the same thing that youve said over and over again.  Dont you think its time for something more?
4/23/2010 10:39:27 PM #
You address an interesting issue on that stuff. In my opinion you handled it in a professional way. I hope you will continue  this way, with your unique ability of writing articles
4/23/2010 10:45:24 PM #
Very awesome article. I just stopped by by your blog and wanted to state that I have really enjoyed  checking your articles. Any way, I’ll be subscribing to your RSS feed and also I'm hoping you post again shortly!
4/24/2010 3:02:56 AM #
This is the first I've seen this stuff, however it's better said like this.  Ya know?  Been going crazy trying to find how or where is the best place to learn about how to prepare for this.
4/24/2010 4:12:34 AM #
Ooh shoot i just wrote a big comment and as soon as i hit reply it came up blank! Please tell me it worked right? I dont want to sumit it again if i do not have to! Either the blog glitced out or i am an idiot, the second option doesnt surprise me lol. thanks for a great blog!
4/24/2010 4:21:23 PM #
Have you ever considered adding more videos to your blog posts to keep the readers more entertained? I mean I just read through the entire article of yours and it was quite good but since I'm more of a visual learner,I found that to be more helpful well let me know how it turns out
4/24/2010 4:39:10 PM #
Dont take this the wrong way, but youre totally boring me here.  Dont get me wrong, I think what you have to say is valid...totally!  But, youve got to give me something to think about that involves images.  You know what they say, -A picture is worth a thousand words.-  You could cut down on the words if you just gave me a few pictures.
4/24/2010 5:38:45 PM #
Can I make a suggestion?  I think youve got something good here.  But what if you added a couple links to a page that backs up what youre saying?  Or maybe you could give us something to look at, something that would connect what youre saying to something tangible?  Just a suggestion.
4/24/2010 9:34:11 PM #
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me. Rapidshare search site
4/25/2010 12:28:59 AM #
This is my second visit to this blog. We are starting a new initiative in the same niche as this blog. Your blog provided us with valuable information to work with. You have done a admirable job.
4/25/2010 2:16:48 AM #
What I wouldnt give to learn how you got your design to be so amazing!  I mean it.  Besides the blog just being awesome, this page is too sweet!  Its not too flashy.  It doesnt do too much with colours and things and the videos you use are perfect for this topic!  Really, awesome blog.
4/25/2010 5:03:04 AM #
Hi i must say very nice blog.
4/25/2010 5:16:33 AM #
After searching Yahoo I found your site about The Devlineator | Converting NUnit Tests to MSTest for CI builds . I think both are good and I will be coming back to you and them in the future. Thanks
4/25/2010 6:29:18 AM #
Do you accept guest posts? I would like to put in writing couple posts here.
4/25/2010 7:35:37 AM #
This post was very nicely written, and it also contains many useful facts. I appreciated your distinguished way of writing the post. You have made it very easy for me to understand.
4/25/2010 8:23:01 AM #
I was wondering what's up by that eerie gravatar??? I know 5am is early and I'm not looking my greatest at that hour, however I trust I do not seem like this! I might however make that face if I am requested to complete a hundred pushups. :-|Smile}
4/25/2010 1:06:08 PM #
I hate to sound like a nitpick, but your grammar is just...deplorable.  I want to be interested in this, I really do.  But it seems you spent so much time on the design (which, I will say, is amazing) that you forgot that people actually have to read your blog.  Clean this up...PLEASE.  It could be so much bigger if you just did some work.
4/25/2010 6:32:04 PM #
Sometimes I just think that people write and dont really have much to say.  Not so here.  You definitely have something to say and you say it with style, my man!  You sure do have an interesting way of drawing people in, what with your videos and your words.  Youve got quite a one-two punch for a blog!
4/25/2010 7:17:04 PM #
Do you have a spam problem  here; I also use Blog Engine, and I was speculating about your experiences; we have developed some nice techniques and we are looking to exchange techniques with others, please Email me if you are interested.
4/25/2010 9:04:41 PM #
Just want to say your article is striking. The clearness in your post is simply spectacular and i can take for granted you are an expert on this field. Well with your permission allow me to grab your rss feed to keep up to date with forthcoming post. Thanks a million and please keep up the effective work. Old Texas Holdem portal
4/26/2010 10:30:06 AM #
I am researching this issue and your post is very helpful and informative. Thank you.
4/26/2010 11:56:46 AM #
I really appreciate your articles. I'll bookmark this so I can read more later. Thanks again for sharing this free online
4/26/2010 1:08:46 PM #
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me. Rapidshare search site
4/26/2010 5:25:32 PM #
touche! excellent site guys! Last night I stumbled upon another precious webba santana filled with downloads for consoles like wii, xbox 360, ds and so on. appreciate that you shared your link with me.
4/26/2010 8:46:52 PM #
What a concidence because I was trying to find more personal opinions on this issue this afternoon when I discovered your really informative blog post...thanks a million for writing this. I will definitely be checking up on your blog and visiting again to read new articles.By the way since when have you been blogging? Smile
4/26/2010 9:59:20 PM #
You did a very nice job. I never thought before that this option could be applied. I was thinking that it's impossible to do such an alternative solution.

4/27/2010 1:07:47 AM #
Thank you so much for your outlook on The Devlineator | Converting NUnit Tests to MSTest for CI builds , I totally agree with you. It is good to see a fresh outlook on this and I look forward to more.
4/27/2010 2:51:49 PM #
This is a smart blog.  I mean it.  You have so much knowledge about this issue, and so much passion.  You also know how to make people rally behind it, obviously from the responses.  Youve got a design here thats not too flashy, but makes a statement as big as what youre saying.  Great job, indeed.
4/27/2010 10:04:26 PM #
I\'m happy I found this blog, I couldnt discover any info on this subject matter prior to. I also run a site and if you want to ever serious in a little bit of guest writing for me if possible feel free to let me know, i\'m always look for people to check out my site. Please stop by and leave a comment sometime!
4/27/2010 10:07:55 PM #
Great stuff from you, man.  Ive read your stuff before and youre just too awesome.  I love what youve got here, love what youre saying and the way you say it.  You make it entertaining and you still manage to keep it smart.  I cant wait to read more from you.  This is really a great blog.
4/28/2010 12:08:26 AM #
This post was very well written, and it also contains a lot of useful facts. I enjoyed your distinguished manner of writing the post. You have made it very easy for me to understand.
4/28/2010 1:11:39 AM #
The beauty of these blogging engines and CMS platforms is the lack of limitations and ease of manipulation that allows developers to implement rich content and 'skin' the site in such a way that with very little effort one would never notice what it is making the site tick all without limiting content and effectiveness.
4/28/2010 4:40:19 AM #
Hi i must say very nice blog. I'm thinking about starting a no win no fee solicitors blog, i hope your blog gets more visitors good luck.
4/28/2010 8:40:41 AM #
Don’t stop blogging! It’s nice to read a sane commentary for once
4/28/2010 8:41:48 AM #
good work…unique site and interesting too… keep it up…i am looking forward for more updates.
4/29/2010 1:29:33 AM #
Find The Best Online Forex Brokers. Many traders have troubles finding a good Online Forex Broker. For a complete list of all Online Forex Brokers visit http://onlineforexbrokers.info . If you already choosed a Forex Broker why don't you give it a review. The Best Online Forex Brokers are willing to double your first deposit when you register with them so you can start trading right away. In my opinion, the best forex platform to trade is metatrader. Your Online Forex Broker should give you access to all kind of market resources, including tutorials, news and forex seminars. Good luck in choosing your Forex Broker
4/29/2010 2:32:28 AM #
Do you have a spam problem on this blog; I also use Blog Engine, and I was wondering about your experiences; we have developed some great practices and we would like to exchange techniques with others, please Email me if you are interested.
4/29/2010 5:03:10 AM #
Hi top blog im from irland but im moving to USA i found this on the  search engine, I'm thinking about starting a private jets for sale blog,keep the good work up i will add you to my favoroties.
4/29/2010 9:01:18 AM #
You raise a lot of questions in my mind; you wrote a good post, but this post is also mind provoking, and I will have to ponder it some more; I will return soon.
4/29/2010 12:35:08 PM #
This post was very well written, and it also contains a lot of useful facts. I enjoyed your distinguished manner of writing the post. You have made it very easy for me to understand.
4/29/2010 6:05:31 PM #
Your page is so fantastic!  You sure do know how to keep your audience entertained.  Im so glad that I took the time to look at this blog, because let me tell you.  Not a lot of people know how to balance knowledge of a subject and content.  The videos are perfect!
4/30/2010 12:20:52 AM #
This is my third visit to your blog. We are starting a brand new initiative in the same category as this blog. Your blog provided us with valuable information to work on. You have done a marvellous job.
4/30/2010 4:41:47 AM #
Hi cool blog im from manchester im thinking of doing a manchester solicitors blog, thanks for your info i got some useful tips for my blog.
4/30/2010 7:24:38 AM #
This is my second visit to this blog. We are starting a brand new initiative in the same niche as this blog. Your blog provided us with important information to work on. You have done a admirable job.
4/30/2010 9:16:25 AM #
Whats happening, I found this site by error when I was browsing Aol next I arrived to your web site. I must say your web page is interesting I really like your theme! Currently I don�t have the free time at the current moment to fully look through your sitebut I have bookmarked it. I will be back in a day or two. Thanks for a good site.
4/30/2010 9:44:25 AM #
All I want to say is, yes!  Yes!  Yes!  Youre so right.  I want to get behind this so much.  You speak with so much authority, so much spirit, I feel as though youve definitely hit the nail on the head.  Good job with this.  Please keep brining us more because we need more of your type of blogger.
4/30/2010 9:48:18 AM #
Hi i love your blog ill add you to my favorites thanks.
4/30/2010 1:08:45 PM #
Superb read, I just passed this onto a colleague who was doing a little research on that. And he actually purchased me lunch simply because I found it for him. So let me rephrase that: Many thanks for lunch!