NUnitForms Class Library

ListBoxTester Methods

The methods of the ListBoxTester class are listed below. For a complete list of ListBoxTester class members, see the ListBoxTester Members topic.

Public Instance Methods

ClearSelected Clears the selections from the list box.
Click (inherited from ControlTester) Convenience method "Clicks" on the control being tested if it is visible
EndCurrentEdit (inherited from ControlTester) Should call this method after editing something in order to trigger any databinding done with the Databindings collection. (ie text box to a data set)
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FireEvent (inherited from ControlTester)Overloaded. Simulates firing of an event by the control being tested.
GetEnumerator (inherited from ControlTester) Returns uniquely qualified ControlTesters for each of the controls associated with this tester as an IEnumerator. This allows use of a foreach loop.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
Invoke (inherited from ControlTester) Convenience method invoker for any nonsupported method on a control to test
MouseController (inherited from ControlTester) Returns a MouseController that can be used with the control under test. It would be better to use the MouseController on the base test class so that you don't have to worry about disposing it after your test. I think this may be marked obsolete soon.
SelectOverloaded. Selects an item in the ListBox according to its index.
SetSelectedOverloaded. Sets the selected property of an item at an index.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

ListBoxTester Class | NUnit.Extensions.Forms Namespace