Vote UpVote

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 ...
Favorite? Off-Topic? noreply@blogger.com @ 2011-09-18 16:37


Visits: 854
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)