Code

Programming Languages: C#

License: BSD License

Repositories

browse code, statistics, last commit on 2012-02-21 svn co https://nunitforms.svn.sourceforge.net/svnroot/nunitforms nunitforms

Show:

What's happening?

  • Followup: RE: Modal Dialog Canceling FormClosing

    Regarding your question about active developers, well, Andreas regularly updates the included nunit binaries, but no one seems to have time to do any further work. Personally, I had joined the project two years ago, in order to contribute some fixes that I made after using nunitforms at work. As I only use the dialog management framework (our interfaces are too nested and dynamic to be able...

    2012-02-24 16:11:51 PST by lhab

  • Followup: RE: ExpectModal method?

    BTW, the ExpectModal interface is problematic because: - the form/dialog title is not always correctly set at the time the handler is run - it will accept a dialog with a given title any number of times, and if you specify several expected titles, they will be accepted in any order, so that you have to check the count and ordering manually. The ModalFormHandler interface is free of those...

    2012-02-24 15:47:56 PST by lhab

  • Followup: RE: Modal Dialog Canceling FormClosing

    Here is the explanation: - ShowDialog shows the form and runs its own message loop - the ModalFormHandler is run from inside this loop - the form.DialogResult property is a trivial wrapper around a field in the form object, assigning to it does not trigger anything - the message loop in ShowDialog periodically checks wether the DialogResult property has been set by a message handler, in...

    2012-02-24 09:54:00 PST by lhab

  • NUnitForms

    alaendle committed revision 65 to the NUnitForms SVN repository, changing 36 files.

    2012-02-21 12:29:55 PST by alaendle

  • Followup: RE: Modal Dialog Canceling FormClosing

    I think i found the actual problem (and a solution :-) ) ... the events (FormClosing, FormShown, ...) are getting fired much too late. So the most senseful and simplest solution is: Waiting until the needed Events occur! To simplify, a test that requires working off certain events, could look like this: [Test] public void AnyTest() { ... this.ModalFormHandler = SomeHandler;.

    2012-02-20 12:50:50 PST by lobbylobsbourne

  • Followup: RE: Modal Dialog Canceling FormClosing

    Hi Anders, thanks for your quick reply. Unfortunately your suggestions didn't solve my problem. I used the (obsolete) ExpectModal-Method as you mentioned and received the same behaviour. So in my following explanations I'll keep refering to the (new) ModalFormHandler from the latest NUnitForms-Code (out of svn). So here is what I can report in detail: I'm setting the ModalFormHandler...

    2012-02-19 12:38:36 PST by lobbylobsbourne

  • Followup: RE: ExpectModal method?

    Thank you Anders Lillrank, This works great. However, before taht I had to find out that I needed to download the NUnit Forms and add the .dll to the reference lib before using the ExpectModal method. I thought it was already inside the NUnit.Framework dll. Regards, Geisson.

    2012-02-17 04:10:45 PST by geissonr

  • Followup: RE: Modal Dialog Canceling FormClosing

    Ignore TextBoxTester in last post, copy paste misstake. /Anders.

    2012-02-17 01:35:56 PST by andlil4711

  • Followup: RE: ExpectModal method?

    Hi! Use ExpectModal something like this [Test] public void testcase() { // Name of the modal dialog. ExpectModal("ModalDialogName", delegate { // do modal dialog handling, example click a button ButtonTester bt = new ButtonTester("MyButton", "ModalDialogName"); bt.Click(); });.

    2012-02-17 01:29:19 PST by andlil4711

  • Followup: RE: Modal Dialog Canceling FormClosing

    Hi! You need to handle the DialogBox code in a delegate like this [Test] public void ConfirmDialogWithoutInput() { // TestForm should be the name of your modal dialog. ExpectModal("TextBox", delegate { TextBoxTester textBox = new TextBoxTester("TextBox", form); ButtonTester ok = new ButtonTester("ButtonOk", TextBox",);...

    2012-02-17 01:16:54 PST by andlil4711

Our Numbers