NUnitForms Class Library

NUnitFormTest.ExpectModal Method (String, String)

One of four overloaded methods to set up a modal dialog handler. If you are not sure which to use, use this one. If you expect a modal dialog to appear and can handle it during the test, use this method to set up the handler. Because "expected" is usually (always) true if you are calling this, I don't expect it will be used externally.

[Visual Basic]
Overloads Protected Sub ExpectModal( _
   ByVal name As String, _
   ByVal handlerName As String _
)
[C#]
protected void ExpectModal(
   string name,
   string handlerName
);

Parameters

name
The caption on the dialog you expect.
handlerName
The name of the method to call when that dialog appears.

See Also

NUnitFormTest Class | NUnit.Extensions.Forms Namespace | NUnitFormTest.ExpectModal Overload List