I\'ve been writing some providers in c# that inherit from the providerbase class. I\'ve found that it\'s hard to write tests that use the providers as most mocking framework
Mocking frameworks should be able to create for you a mock object based on a class, as long as it's got virtual members.
You may also want to take a look at Typemock