コード例 #1
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);
 }
コード例 #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>
 public void FireEvent(string eventName)
 {
     EventHelper.RaiseEvent(TheObject, eventName);
 }
コード例 #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>
 /// <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);
 }