OpenCTF  1.5.0
Open Component Test Framework
 All Classes Functions Variables
TRequiredEventsTest Class Reference

Tests the existence of an event handler. More...

Inheritance diagram for TRequiredEventsTest:
TComponentTest

List of all members.

Public Member Functions

 TRequiredEventsTest (TComponent Component, const string *EventNames, const Boolean CheckAssigned=True)
 Creates a TRequiredEventsTest instance.

Protected Member Functions

 RunTest (TTestResult testResult)
 Run the test.

Detailed Description

Tests the existence of an event handler.


Constructor & Destructor Documentation

TRequiredEventsTest::TRequiredEventsTest ( TComponent  Component,
const string *  EventNames,
const Boolean  CheckAssigned = True 
)

Creates a TRequiredEventsTest instance.

Parameters:
Componentthe component to be tested.
EventNamesarray of the names of events
CheckAssignedif true, the test fails if at least one event handler is missing (unassigned); if false, the test fails if at least one event handler is assigned