NUnitForms Class Library

ControlTester Members

ControlTester overview

Public Instance Constructors

ControlTesterOverloaded. Initializes a new instance of the ControlTester class.

Public Instance Properties

Count Returns the number of controls associated with this tester.
ItemOverloaded. Allows you to find a ControlTester by index where the name is not unique.
Text Convenience method retrieves the Text property of the tested control.

Public Instance Methods

Click Convenience method "Clicks" on the control being tested if it is visible
EndCurrentEdit 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.
FireEventOverloaded. Simulates firing of an event by the control being tested.
GetEnumerator 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 Convenience method invoker for any nonsupported method on a control to test
MouseController 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.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Constructors

ControlTesterOverloaded. Initializes a new instance of the ControlTester class.

Protected Instance Fields

name The name of the underlying control.

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.

Protected Internal Instance Properties

Control The underlying control for this tester.

See Also

ControlTester Class | NUnit.Extensions.Forms Namespace