A generic test factory for .NET