...
Unfortunately our syntax gets more complex and we need to turn on the stub using
mocks.ReplayAll();
Mocking void Methods()
Methods without return values are easy. You get default implementation doing nothing
Code Block |
---|
interface IInterface
{
void Go();
}
|
We can use it like this in test
Code Block |
---|
var mock = mocks.Stub<IInterface>();
mock.Go();
|