Re: How to do unit test on an atom unit which tied with a large unit?
- From: "Bruce McGee" <bmcgee@xxxxxxxxxxxx>
- Date: 4 Dec 2006 02:58:15 -0700
Koms Bomb wrote:
"Dennis Landi" <nada@xxxxxxxx> wrote:
Of course, you would have to instantiate a manager class or create
a "manager test stub" and fake the functionality in the test for
purposes of the test.
I think Dennis' second suggestion is the best way to go. Create a fake
manager class to work with and control the actual atom class that you
want to test. Since you aren't testing the manager class itself, it
only needs to be functional enough to for the atom class to get the
details it needs. This might be a little time consuming depending on
the relationship between these objects, but I think being able to test
in isolation will make up for that.
Do a search on Mock Objects, and you'll find lots of details.
--
Regards,
Bruce McGee
Glooscap Software
.
- Follow-Ups:
- References:
- How to do unit test on an atom unit which tied with a large unit?
- From: Koms Bomb
- Re: How to do unit test on an atom unit which tied with a large unit?
- From: Dennis Landi
- Re: How to do unit test on an atom unit which tied with a large unit?
- From: Koms Bomb
- How to do unit test on an atom unit which tied with a large unit?
- Prev by Date: Re: The Delphi Magazine closing down
- Next by Date: Re: Delphi to be integrated into ms visual studio ?!?
- Previous by thread: Re: How to do unit test on an atom unit which tied with a large unit?
- Next by thread: Re: How to do unit test on an atom unit which tied with a large unit?
- Index(es):
Relevant Pages
|