Sunday, May 24, 2009

SilverUnit

Over the last couple of days I’ve been playing a litte bit with SilverUnit. Initially I had a few problems as it seemed that SilverUnit was referencing an older version of TypeMock (still using my Trial).

I emailed Roy Osherove and he put up a new version of SilverUnit which fixed my problem with running my tests. This morning he emailed me back with a link to a blog post. here. He’s released a template to help set up a SilverUnit test. Much quicker and easier.

I made up my own Item template for creating a new test class once you’ve got your SilverUnit project. (I sent it to Roy so hopefully he’ll add that to his installer).

So far I’m liking SilverUnit. It feels more like conventional unit testing and does not use the Silverlight run time (or in a browser). This should mean that you could put this stuff on a build server and automate it. (I’ve not tested that). It also runs nicely with Resharper’s unit test features, and TestDriven.Net.

The small downside is that it does rely on TypeMock (which you need to buy a license for) but if you come along to the next Perth Silverlight Design and Developer Network meeting, I’ll be announcing that I have been promised a couple of TypeMock Isolater (ASP.Net bundle) licenses to give away at the meetings. I think I’ll make one a raffle, and the other can be as a reward for doing a Silverlight presentation at one of our meetings.

Which reminds me, don’t forget the next SDDN meeting in Perth is this week! Wednesday the 27th May, check http://www.sddn.org.au or http://groups.to/sddn (the Facebook group)

1 comments:

Gil Zilberfeld said...

Hi Stephen,

I'm glad you like SilverUnit. It's open source, so if you or any other people want to contribute let us know.

Gil Zilberfeld
Typemock