Wednesday, April 18, 2007
I'm not sure how far back this feature goes but I just discovered it yesterday, thanks to Michal Talaga.

When you follow the practice of defining your test before you write your method, you lose out on the beauty and addicting convenience of intellisense.  Since Visual Studio.Net v1.0, I have become dependent on intellisense to keep me productive and assist me in typing out long method names.  Having to type them once, and then again, sucks...

WOW, check out what is available when you write a method that doesn't exist!



Now I seem to recall running across this before but I was not yet privy to TDD.  As it turns out, this is even faster then waht intellisense gives you because the method signature is shaped according to the variables you pass in. 

Try it out and see if you don't also feel it was the missing piece of your TDD puzzle.
4/18/2007 3:43:48 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  |  Trackback
Tuesday, April 03, 2007
LoaderExceptions:
Could not load file or assembly 'Reflector, Version=4.2.0.0, Culture=neutral, PublicKeyToken=18ca6bb8dd6a03c3' or one of its dependencies. The system cannot find the file specified. (FileNotFoundException)

The code is now available from googlecode as open source (thanks Jay Flowers!)

Found the latest, working version here: http://code.google.com/p/doubler/

4/3/2007 6:51:38 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  |  Trackback
Tuesday, February 06, 2007

I use NUnit extensively.  Since discovering the virtues of unit testing a couple of years ago, I will never turn back to unverified code.  However, that does not mean I do not have, nor sometimes write, unverified code.  There's all the legacy code (technical baggage) that you carry with you as well as the things you write in a rush when you just miss the test first philosophy.  I won't go into philosophy here and I understand that generating tests from existing code violates the very priciples of test driven purists.  duly noted...

After the fact, I want the tests to be so easy to write that there just ain't no good excuse for not writing them.  Doubler to the rescue!  Doubler has several features but I was most interested in unit test generation from concrete classes.

Since I failed to make this work more then a year ago and still yearn for a tool like this, I tried again, this time with success.  It turns out to be an unexpected config requirement, possibly due to my old computer having three frameworks on it.

If you don't have Reflector, get it!  Next, download Doubler.  Unzip the dlls into a directory above Reflector.  I am not sure why this is necessary but it will fail to find references if you have it as a Reflector sub directory.

Follow the Doubler installation video.

If Reflactor fails to load the add-in, double click on the failure message to see the exception details.  Read on if you see the following message: System.BadImageFormatException: The format of the file
'ReflectorDouble.dll' is invalid.

from here

Create a config file for Reflector
(Reflector.exe.config) and add 'supportedRuntime' elements to it so
the .NET runtime will bind to the 2.0 framework 
ReflectorDouble.dll will load successfully. The other two
release versions are there to make the configuration more flexible for those who
may need it.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <startup>
      <supportedRuntime version="v2.0.50727"/>
      <supportedRuntime version="v1.1.4322"/>
      <supportedRuntime version="v1.0.3705"/>
   </startup>
</configuration>

 

 

C# | NUnit
2/6/2007 4:56:22 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  |  Trackback
Tuesday, May 04, 2004
NUnit automated test success story
5/4/2004 7:48:05 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  |  Trackback
Tuesday, April 27, 2004
my first NUnit ecperience, very pleasurable indeed!
Programming | .Net | C# | NUnit
4/27/2004 4:52:34 PM (GMT Standard Time, UTC+00:00)  #    Comments [5]  |  Trackback

Theme design by Jelle Druyts

Pick a theme: