The ASPSmith's Blog

Some rants about ASP.NET by Steven Smith

NUnit 2.0 And .NET 1.1 Together

I spoke at the Wisconsin .NET User Group last night and had a good time.  A small part of my talk was on using NUnit to do unit testing and an introduction to Test Driven Development(TDD).  In the course of preparing my samples I upgrade to VS.NET 2003 from VS.NET 2002 and thus from .NET v1.0 to v1.1.  Unfortunately, I had a heck of a time getting NUnit to work after doing this, and was getting a security exception any time I tried to load a 1.1 compiled assembly.

There are couple of resources I was directed to related to this when I asked the community at ASPAdvice.com for help.  Rachel Reese directed me to Robert McLaws blog on the subject, which in turn linked this very detailed article.  However, because I'm dense at times I didn't actually "get it" as far as what I had to do until James Shaw from www.CoverYourASP.com wrote to inform me of this exact process:

 To get NUnit to work with 1.1 assemblies, add this to the NUnit config files in NUnit's /bin folder (gui and console):

<configuration>

<startup>

<supportedRuntime version="v1.1.4322" />

</startup>


I did that, started up NUnit, loaded my 1.1 compiled assembly, ran my tests, and everything came up green on the first try.  Yay!  Hope this helps other NUnit users.

[Listening to: Redshift - Infamy (great Ohio local band)]

Comments

James Shaw said:

If you use nunit check out the VS add-in:

http://sourceforge.net/projects/nunitaddin/

I love the gui nunit, but now you can test your whole solution at once and get results in the output window.
# June 11, 2003 10:47 AM

Tank said:

Hey I was wondering if u had the song Infamy by Redshift....i am aware of the fact that when u posted this it was June 11, 2003 8:31AM however i was just wondering if u owned the song on CD or on ur computer. Or did u just listen to it on 88.9FM...Get back to me ntank05@yahoo.com --Thanks --Tank
# August 8, 2003 11:44 PM

Mickey said:

Please help! I know it was posted forever ago, bug I noticed you mentioned the great song "Infamy" by the killer but now defunked band Redshift. I have been looking for this song for a long time. if you can help please contact at s_michalec@yahoo.com

thanx
# March 28, 2004 5:12 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)