Anyone use NUnit on C#? Tried using it's mock framework for the first time today, and it seems I have to mock an interface, can't mock a class.. is this right?
Going by an example I found on the web, I try to instantiate like so:
but that spits an exception, complaining it's not the right type?
I hate type strict languages
Going by an example I found on the web, I try to instantiate like so:
Code:
DynamicMock mock = new DynamicMock(typeof(ClassIAmMocking));
I hate type strict languages
