Loop inside the function passed to ModalFormActivated
Brought to you by:
charliepoole,
lukemaxon
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?