NUnitForms Class Library

NUnitFormTest.CurrentForm Property

This should be marked obsolete. It is used only in combination with the FormType property. If you override the FormType property, then CurrentForm will be initialized (on setup) to an instance of the form whose type you specify. None of the testers require a reference to the active form anymore, so this should not be necessary. It will be marked obsolete soon.

[Visual Basic]
Public Property CurrentForm As Form
[C#]
public System.Windows.Forms.Form CurrentForm {get; set;}

See Also

NUnitFormTest Class | NUnit.Extensions.Forms Namespace