code from nunit tutorial at http://2manyprojects.net