October 10, 2003

NUnit fun

Well, after finishing up a first pass through implementation on Microsoft.Web.Services.Addressing, I figured it might be a good idea to write some NUnit test cases that pass fine on the ms class lib, and see what happens.

I figured the time consuming part would be writing the test case code... wow was I ever wrong.

First, I got to find out that the documentation for NUnit2.1 is very hard to find, most of the info I actually figured out came from running through the il for the NUnit.Framework.dll.

After I figured out how to write the test cases, I wrote a bunch, well, only 3 main classes of test cases, but I think its good enough to point me to the potential problems. Most of Microsoft.Web.Services.Addressing is based on 3 main classes: AttributedUri, AttributedUriString and EndpointReferenceType.

Since the 3 classes of test cases I wrote attempt to flex some of the API for all 3, I should be able to get a good indication of where I need to apply some bugfixing.

So, now, I booted up my linux box, and went to moving my test cases over, I was feeling pretty good at this point, and figured I was on the home stretch as far as seeing some mono results. Again, wrong, really really wrong.

I had to hack up the M.W.S Makefile to support building the test stuff, which was lots of fun, I promise.

After getting the Makefile ready, I went to build, only to find out that mono is using nunit2.0 not nunit2.1. So, I am now faced with a decision, either move my test cases backwards, or move mono forwards. Apparently some quality work has been put into moving nunit2.1 to mono already, so I will check the status of that before deciding.

For a quick fix, I attempted to copy over my NUnit.Framework.dll from my windows box to see if maybe I could just get this one test case to run. Now, I havnt used gnunit or nunit-console before, so my error might be completely from this move, or it might be completely different, but I couldnt get either test harness to successfully even load the test assembly... Lots of fun, I swear :)

Hopefully today I will get a little bit further and maybe get some test results to show off and brag about :)

Posted by tberman at October 10, 2003 09:31 AM
Comments

hi from Lester Matere amazing page see a later tomorrow or never

Posted by: Catherine zeta jones nude gallery at March 20, 2004 11:34 AM