Re: [TFUI] Dialogs and EventHandlers

Ron Jeffries <[email protected]> Tue, 8 Nov 2005 07:38:25 -0800
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
On Monday, November 7, 2005, at 5:30:59 AM, Tim Haughton wrote:

> So, now we have a few interesting options for testing (which of course
> we wrote first :) ). We can mock out the collaborator (don't like the
> term, just being consistent with thread) to check that event handlers
> are calling the right methods on the collaborator.

> We can test _GetFontFromUserSelection by passing in mocks for the
> FontDialogue and the Font (using the dynamic mock I posted earlier
> today?) to make sure that's working OK. We can also test that
> GetFontFromUserSelection calls _GetFontFromUserSelection with the
> correct arguments. So we have 100% test coverage for our little
> adventure.

Looks nice ...

I'd be better able to grok, with my limited time and capacity, if
all the code, including whatever _Get is and the dynamic mock stuff,
were in one posting.

And I'd /love/ to see a test-driven development exposition of
building it in that style.

Thanks,

Ron Jeffries
www.XProgramming.com
There's a difference between righteous anger and just being crabby.
  --Barbara Richmond



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/TestFirstUserInterfaces/

<*> To unsubscribe from this group, send an email to:
    TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/