Re: establishing logical test order?

"David Jeske" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
On Tue, Jun 24, 2008 at 12:30 AM, Butler, Tony (London)
<[email protected]> wrote:
>>Are you implying that you mock our EVERY object outside the
> object-in-test?
>>so it is always only YOUR code you are testing?
>
> In theory, yes, that is what one "should" do, but in practice, you have
> to be a bit pragmatic at times.

Really? I love DI, but I would turn and run from a testing environment
which thought we "should" use DI for everything outside the
object-in-test. That would be a maintenance nightmare. I would be
running from fear of being crushed under a mountain of heavy source
code, and bits don't even weigh very much!  Fortunately, I wouldn't
have to run very fast, because that code would be moving at a glaciers
pace. Just think of how many String, List, Hash, and Sort mocks you
would have!

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.