Re: [TFUI] [Article] User Interrogator and TDD
"Rob Park" <[email protected]> Wed, 21 Jun 2006 19:33:29 -0000
| Newsgroups | gmane.comp.programming.test-first-user-interfaces |
|---|---|
| Message-ID | <[email protected]> |
I've got a question about the GetFontFromUser() method...
So you don't actually test that do you? You just mock it to avoid
the dialog, right?
I've been working with an alternative. I'm using NUnitForms, which
supports ExpectModal(). It took a little wrestling, but I got it
working. What it does (if you're not familiar) is establish a
handler, so when the MessageBox, Form, etc of a given name pops up,
it calls the handler. The handler can then close the form.
So in my case, I have a "Clear" button and want a yes/no
confirmation message. 1 test calls the yes handler, another the no
handler. (You can find a basic description in Thibaut Barrère's
blog: http://www.dotnetguru2.org/index.php?
p=123&more=1&c=1&tb=1&pb=1)
My problem is with CruiseControl (CC.Net). I'm getting the
following error:
Unhandled Exception: System.ComponentModel.Win32Exception: The
handle is invalid
at NUnit.Extensions.Forms.Desktop.Destroy()
at NUnit.Extensions.Forms.Desktop.Finalize()
Anyone have any thoughts to work around this?
.rob.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/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/