Cleaning Up Visual Studio 2008 Unit Test Projects

by 20. June 2009 11:52

Save your sanity and mine, uncheck the junk from the File > New > C# Test Project

Tools > Options > Test Tools > Test Project > Uncheck it all except the Unit Test

Visual Studio Test Project Options 
Really ordered tests?  So much for test isolation I guess!

 

If you are a Level 45 Spell Casting Battle Warlock Gnome or something you can continue on … (is that even a W.O.W. thing?)

Then for sanity plus one you can tweak the unit test template to just deliver a nice clean Unit Test Class.

1. Go to C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\1033
that will be Program Files (x86) for those playing at home on 64 bit

2. Backup SimpleUnitTest.zip

3. Srsly Backup SimpleUnitTest.zip

4. Crack open SimpleUnitTest.zip and open up the SimpleUnitTest.cs file

5. Remove the what you don’t want in the template.  I cut everything but this
SimpleUnitTest

6. *At about this point I realized that you can create new VS templates but I’m almost done

7. Copy up you new copy of SimpleUnitTest.zip (you backed this up right?)

8. Start Task Manager

9. Start > Run > devenv /setup (this resets the project cache)

10. Once Devenv.exe has finished it will disappear from the running processes list

11. Start Visual Studio and create a unit test project or add one to your existing project (you know that one that _really_ needs some tests, any tests!)

Your mileage will vary and this

works-on-my-machine-starburst 

Have fun and I probably won’t be able to fix your computer if it gets borked so keep that in mind. :)

It could be the flu, but then again maybe not

by 13. January 2009 13:41

Remember I didn’t say that everything was going to be tech but MotoGirl (the just turned three year old) had the 24 hour projectile vomiting flu.  Luckily MotoBoy (the just turned 1 year old) didn’t get it but MotoMom sure was feeling it and feeling it and feeling it.  Luckily it turned out they she didn’t have the flu so consider that bullet dodged.  Instead MotoMom is pregnant with MotoEmbryo.  Those keeping score at home that does indeed make three children for my wife and I to take care of, however the correct math for my wife is four children. :)

What I could use is some advice you you folks.  Our Subaru Outback really didn’t work that well with two car seats much less three.  Any suggestions on rigs that might work well for 2 tall people, 3 kids and a dog?

MotoGirl
MotoGirlThirdBirthday

MotoBoy
MotoBoyOnMotoPooBear

MotoEmbryo, not the actual one, just a liberated internet picture – Srsly I have no idea who this is :)
MotoEmbryo

Wondering if the Microsoft Tag actually brought you here?

by 9. January 2009 17:39

I tried out of of those Microsoft Tags that was announced recently.  As a test I made one for this blog and sent it out into the twitterverse. @xinmyname (http://onceuponans.blogspot.com/) was so kind enough to try it out and it actually worked.  This might come in useful for wifey's new online store ... coming soon ... if I can figure out CSS :)

Here is what the tag actually looks like in case you came here first

MotoWilliamsMSTag_Small

Tags:

.NET | Twitter

Missed it by that much

by 2. January 2009 01:44
I hoped to get this online before Jan 1 2009 ran out on me, hopefully I won't have to reinstall this only but 50 more times before I figure it all out.

Tags:

Powered by BlogEngine.NET 1.4.5.0
Theme by Extensive SEO

About the author

I'm Eric Williams and I am

  • Father of 2
  • Husband
  • Motorcycle Rider
  • Lover of most things tech
  • going to attempt to get a blog voice

 

Month List