Re: [TFUI] Testing WinForms

Gishu Pillai <[email protected]> Fri, 6 Jan 2006 12:05:39 +0530
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
> And if you don't want to be testing exclusivly from a customer
> perspective, I think Model View Presenter is a very good choice for TDD

Ditto. Coupling MVP with Dynamic Mocks is the fastest that I have been
able to move.
Sometimes you'll have x amount of untested code in the View (Funky
controls with jazzy events). But on the whole quite safe... NCover
says 83%..

So disabling buttons would be IView.DisableButton( args ). You would
be able to test that Presenter calls this method during a test
scenario.
Such a simple case as Disabling buttons can also be tested by testing
the Button's enabled property in the ViewImplementation test fixture
TestDisableButton_ButtonsAreGrayedOut()
But let's says I have a BF Control and I want to test that dropping
the combo box in cell [4,2] and selecting Item No 3 and pressing enter
should do this... then that my friend is going down a harrowing dark
alley.

HTH
--- Gishu


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/