Re: [TFUI] Dialogs and EventHandlers

Tim Haughton <[email protected]> Thu, 10 Nov 2005 10:24:38 +0000
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
On 08/11/05, Owen Rogers <[email protected]> wrote:
>
> what would the tests look like for your collaborator? are
> FontDialogue and FontDialog the same class? how would we mock out
> methods on FontDialog which has got nonvirtual methods?

 Check out the article I just posted. It demonstrates how using the new mock
I posted to the NMock list enabled 100% test coverage in that particular
case. Being able to mock out controls and forms is key to testing things
like modal dialogs. Ifyou recall, the mock I posted can mock non virtual
methods.
 The solution I came up with during the coding exercise looks very different
to the solution I suggested on this list after a thought exercise. That must
mean I'm not as smart as I thought. :)

Cheers,
 Tim Haughton


[Non-text portions of this message have been removed]



------------------------ 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/