C# Class InternalHelper.Tests.AutomationEvents

Object called from the test cases to test out AutomationEvents
Inheritance: EventObject
Exibir arquivo Open project: geeksree/cSharpGeeks Class Usage Examples

Public Methods

Method Description
AddEventHandler ( AutomationEvent eventId, string eventName, AutomationElement element, TreeScope treeScope ) : void

Method that registers the event handler OnEvent()

AutomationEvents ( ) : System

OnEvent ( object element, AutomationEventArgs argument ) : void

Method registered by AddEventHandler() as an event handler

RemoveEventHandler ( AutomationEvent eventId, AutomationElement element ) : void

WasEventFired ( AutomationElement element, AutomationEvent automationEvent ) : EventFired

Method determines if the desired event was fired

Method Details

AddEventHandler() public method

Method that registers the event handler OnEvent()
public AddEventHandler ( AutomationEvent eventId, string eventName, AutomationElement element, TreeScope treeScope ) : void
eventId System.Windows.Automation.AutomationEvent
eventName string
element System.Windows.Automation.AutomationElement
treeScope TreeScope
return void

AutomationEvents() public method

public AutomationEvents ( ) : System
return System

OnEvent() public method

Method registered by AddEventHandler() as an event handler
public OnEvent ( object element, AutomationEventArgs argument ) : void
element object
argument System.Windows.Automation.AutomationEventArgs
return void

RemoveEventHandler() public method

public RemoveEventHandler ( AutomationEvent eventId, AutomationElement element ) : void
eventId System.Windows.Automation.AutomationEvent
element System.Windows.Automation.AutomationElement
return void

WasEventFired() public method

Method determines if the desired event was fired
public WasEventFired ( AutomationElement element, AutomationEvent automationEvent ) : EventFired
element System.Windows.Automation.AutomationElement
automationEvent System.Windows.Automation.AutomationEvent
return EventFired