Mocks are for emulating the environment around the object under test,
rather than the object itself.
So where did this abstract object came from? It should have come from
refactoring common behaviour out of other classes, so it should be
included in their tests.
Steve
Dan Cramer wrote:
> How do I go about testing an abstract type? Do I create a mock that
> sub-classes it and run tests against that?
|