Geeks With Blogs
Matt Roberts Rails and .NET December 2008 Entries
Get Database rollback powers in your NUnit Tests!
Ok - no credit to me for any of this good stuff. All I'm doing here is posting on how to get database rollback working in your Nunit tests. Roy Osherove created something called XtUnit - "An Unofficial Unit Testing Extensibility Framework - Add new attributes to NUnit or MbUnit easily" - His blog talks you through all the cool stuff that you can do with this framework, like implementing your own attributes to do cool things pre and post ......

Posted On Thursday, December 18, 2008 3:26 PM

How to make a "protected" method available for "partial" mocking using RhinoMocks
There are 2 cool things I want to share here... Partial Mocking This is a very cool and useful feature of RhinoMocks, which allows you to test part of a class, but have some of it act normally. Its explained very well here: Making "protected" methods available for mocking. Partial mocks are great, but what do you do when you need to "mock" out a method that isn't visible to your test class - i.e. its private or protected. ......

Posted On Tuesday, December 16, 2008 11:00 AM

Copyright © Matt Roberts | Powered by: