Exemple #1
0
 /// <summary>
 /// Convenience method invoker for any nonsupported method on a control to test
 /// </summary>
 /// <param name="methodName">the name of the method to invoke</param>
 /// <param name="args">the arguments to pass into the method</param>
 public object Invoke(string methodName, params object[] args)
 {
     return(EventHelper.Call(TheObject, methodName, args));
 }
Exemple #2
0
 /// <summary>
 /// Simulates firing of an event by the control being tested.
 /// </summary>
 /// <param name="eventName">The name of the event to fire.</param>
 /// <param name="arg">The EventArgs object to pass as a parameter on the event.</param>
 public void FireEvent(string eventName, EventArgs arg)
 {
     EventHelper.RaiseEvent(TheObject, eventName, arg);
 }
Exemple #3
0
 /// <summary>
 /// Simulates firing of an event by the control being tested.
 /// </summary>
 /// <param name="eventName">The name of the event to fire.</param>
 public void FireEvent(string eventName)
 {
     EventHelper.RaiseEvent(TheObject, eventName);
 }
Exemple #4
0
 /// <summary>
 /// Simulates firing of an event by the control being tested.
 /// </summary>
 /// <param name="eventName">The name of the event to fire.</param>
 /// <param name="args">The optional arguments required to construct the EventArgs for the specified event.</param>
 public void FireEvent(string eventName, params object[] args)
 {
     EventHelper.RaiseEvent(TheObject, eventName, args);
 }