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)

Wednesday, May 20, 2009

SilverUnit

Unit Testing ASP.NET? ASP.NET unit testing has never been this easy.
Typemock is launching a new product for ASP.NET developers – the ASP.NET Bundle - and for the launch will be giving out FREE licenses to bloggers and their readers.
The ASP.NET Bundle is the ultimate ASP.NET unit testing solution, and offers both Typemock Isolator, a unit test tool and Ivonna, the Isolator add-on for ASP.NET unit testing, for a bargain price.
Typemock Isolator is a leading .NET unit testing tool (C# and VB.NET) for many ‘hard to test’ technologies such as SharePoint, ASP.NET, MVC, WCF, WPF, Silverlight and more. Note that for unit testing Silverlight there is an open source Isolator add-on called SilverUnit.
The first 60 bloggers who will blog this text in their blog and tell us about it, will get a Free Isolator ASP.NET Bundle license (Typemock Isolator + Ivonna). If you post this in an ASP.NET dedicated blog, you'll get a license automatically (even if more than 60 submit) during the first week of this announcement.
Also 8 bloggers will get an additional 2 licenses (each) to give away to their readers / friends.
Go ahead, click the following link for more information on how to get your free license.


I've been doing some Silverlight unit testing, and have tried Rhinomocks for Silverlight. I did run into some issues (not had a chance to get back and have another look at it) but would love the opportunity to check out Typemock's Silverlight unit testing.

Stay in the light...