nUnit "Features".

I was pulling my hair out today. I had a test fixture containing a particular test case I didn't want to run anymore -- but I didn't want to remove the code. Instead of adding the "Ignore" attribute, I simply commented out the attribute with "//". After re-compiling, the method was still showing up! I shutdown nUnit and restarted. There was the method! I checked it out with ILDASM -- no "Test" attribute. What was going on?!

Then I noticed the name of the method started with "Test". nUnit still supports that "old-fasioned" way of naming test cases... :)

No Comments