Menu

#11 Loop inside the function passed to ModalFormActivated

open
nobody
None
5
2005-10-18
2005-10-18
Anonymous
No

See the code bellow:

Mytest is the following:

ExpectModal("LogonBoxForm", new
ModalFormActivated
(LogonWithWrongPasswordHandler), false);

In LogonWithWrongPasswordHandler:

You click on OK in the LogonBoxForm, and the result is
that a message box "Wrong password" is displayed, on
which you click on [OK]. (It is managed by another
ExpectModal,etc).
The consequence is that after this click, the
LogonBoxForm is again activated, and you enter again
in the LogonWithWrongPasswordHandler delegate.

As a consequence, the delegate is called in loop.

Is there any solution to avoid this problem, in the NUnit
frameworks?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.