OpenCTF  1.7.0
Open Component Test Framework
TRequiredEventsTest Class Reference

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

Inheritance diagram for TRequiredEventsTest:
TComponentTest

Public Member Functions

 TRequiredEventsTest (TComponent Component, const string *EventNames, const Boolean CheckAssigned=True)
 Creates a TRequiredEventsTest instance. More...
 
- Public Member Functions inherited from TComponentTest
 TComponentTest (TComponent Component, const string Testname='')
 Creates a TComponentTest instance. More...
 

Protected Member Functions

 RunTest (TTestResult testResult)
 Run the test.
 

Additional Inherited Members

- Protected Attributes inherited from TComponentTest
TComponent Component
 the component to be tested. More...
 

Detailed Description

Tests the existence of an event handler.

Constructor & Destructor Documentation

◆ TRequiredEventsTest()

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

References TComponentTest::Component.