Search the web
Sign In
New User? Sign Up
glasgow_altdotnet_usersgroup · Glasogw ALT,NET Users Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
TDD, Mocks, Stubs, IoC, DI, getting it straight.   Message List  
Reply | Forward Message #744 of 763 |
RE: [glasgow_altdotnet_usersgroup] Re: TDD, Mocks, Stubs, IoC, DI, getting it straight.

>> it its the section on Test Doubles that you'll want to look at.
 
Amen to that.

The analogy of the stunt double is one of the things that finally enabled me to write better tests.

I always write my own test doubles.  Is it possible to create through a mocking framework?

Everyone has there own aha moment.

The moment it clicked that I should absolutely start by writing a test that fails and then  make it pass was when I was sold on the whole thing.

I try and start every bug with the input that caused the bug and every new functionality with a good assertion that it should pass.

dagda1@...




To: glasgow_altdotnet_usersgroup@yahoogroups.com
From: colin.jack@...
Date: Wed, 22 Oct 2008 07:52:50 +0000
Subject: [glasgow_altdotnet_usersgroup] Re: TDD, Mocks, Stubs, IoC, DI, getting it straight.


>
> Thank you Colin for the book recommendation, it has been sitting in my
> amazon basket for a while now. Got a few others to read first.
>

I know that feeling! :) When you do buy it its the section on Test
Doubles that you'll want to look at.




For the best free wallpapers from MSN Click here!


Wed Oct 22, 2008 8:09 am

dagda1970
Offline Offline
Send Email Send Email

Forward
Message #744 of 763 |
Expand Messages Author Sort by Date

Hi folks, May I ask, have I got this right.... TDD is based on writing tests before you write your code. The test initially fails and then the code is written...
dsmyth2001
Offline Send Email
Oct 20, 2008
7:41 pm

I only really have experience of Rhino.Mocks. One of the problems of mocking is we have so many names for similar things.Since the advent of Rhino.Mocks 3.5...
Paul Cowan
dagda1970
Offline Send Email
Oct 20, 2008
7:51 pm

I don't use any mocks anymore, instead I use stubs. In the tests that are concerned with the interaction between the dependency and method/system under test I...
Chris Canal
cr_canal
Offline Send Email
Oct 20, 2008
7:59 pm

OK so yous didn't mock me (pun intended) for posting that so I must have understood what I have been reading. Stubs did seem easier to apply but an...
dsmyth2001
Offline Send Email
Oct 21, 2008
8:30 pm

I gave Pex a shot a while back and it did some v. odd things, seemed inclined to change the SUT with Pex specific magic when I told it to resolve errors....
Colin Jack
colin.jack
Offline Send Email
Oct 22, 2008
7:51 am

... I'd recommend XUnit Test Patterns and Jimmy Bogard also has some blog entries on it. If you want to hear the pro-mocking view I'd see mockobjects.com or ...
Colin Jack
colin.jack
Offline Send Email
Oct 21, 2008
12:03 pm

Thank you Colin for the book recommendation, it has been sitting in my amazon basket for a while now. Got a few others to read first. ... to ... and...
dsmyth2001
Offline Send Email
Oct 21, 2008
8:55 pm

... I know that feeling! :) When you do buy it its the section on Test Doubles that you'll want to look at....
Colin Jack
colin.jack
Offline Send Email
Oct 22, 2008
7:52 am

... Amen to that.The analogy of the stunt double is one of the things that finally enabled me to write better tests.I always write my own test doubles. Is it...
Paul Cowan
dagda1970
Offline Send Email
Oct 22, 2008
8:09 am

Definitely agree, great analogy. ... that finally enabled me to write better tests.I always write my own test doubles. Is it possible to create through a...
Colin Jack
colin.jack
Offline Send Email
Oct 22, 2008
8:39 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help