From: Steve F. <st...@m3...> - 2003-06-12 20:00:39
|
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? |