C# Class InternalHelper.Tests.EventObject

This base object manages the events that are fired by the EventFramework
Exibir arquivo Open project: geeksree/cSharpGeeks

Private Properties

Property Type Description
AddEventHandler void
Comment void
EventObject System
OnEvent void
RemoveAllEventsFired void
WaitForEvents bool
WasEventFired EventFired

Public Methods

Method Description
RemoveAllEventHandlers ( ) : void

Removes all event handlers

Private Methods

Method Description
AddEventHandler ( ) : void

Called by the inheriting EventFramework class to reset the ManualResetEvent

Comment ( string format ) : void
EventObject ( ) : System

Object that stores the event

OnEvent ( object eventElement, object argument ) : void

Method that is called from the inherited OnEvent() and will store the event in the _eventList ArrayList.

RemoveAllEventsFired ( ) : void

Delete the contents of the event list

WaitForEvents ( int number, int millSeconds ) : bool

Called by the test cases to make sure the number of desired events have been fired before they start doing eny event verification.

WasEventFired ( EventItem eventItem ) : EventFired

Called by the inheriting EventFramework class to determine if an event has been fired

Method Details

RemoveAllEventHandlers() public static method

Removes all event handlers
public static RemoveAllEventHandlers ( ) : void
return void