1
vote

Pimp your unit tests using mock objects
Delphi sorcery
– Have you ever faced the problem of having dependencies in your unit tests that made it hard to actually write a unit tests instead of writing an integration test? Often you have that problem with bad designed code that does not follow certain principles. But also with well designed code you might end up having your one class you want to test which depends on 3 other classes which might as well depend on other classes. At this point you actually benefit from well designed code. You can use so called mock objects in your unit tests.Wikipedia describes them as "simulated objects that mimic the ...
Statistics
|
Visits by Source |
User Actions |