CUnitTestContext Class Reference

class CUnitTestContext : public CBase

Comments : Provide the base class definition for a Unit Test's specific data. This class is CBase derived so that test developers can derive from this class and add owned member data if they wish.

Inherits from

Constructor & Destructor Documentation

CUnitTestContext(CDataLogger &, MStateAccessor &, MTransitionObserver &)

CUnitTestContext(CDataLogger &aDataLogger,
MStateAccessor &aAccessor,
MTransitionObserver &aObserver
)[inline]
Intended Usage : Default constructor.
Since
7.0
Pre-condition
None.
Post-condition
CUnitTestContext is fully constructed, and initialized.

Parameters

CDataLogger & aDataLoggerThe output logging object.
MStateAccessor & aAccessorWhiteBox state access to the class under test.
MTransitionObserver & aObserverThe observer of this UnitTest's Transitions.

Member Functions Documentation

DataLogger()

CDataLogger &DataLogger()const [inline]
Intended Usage : Provides access to the CDataLogger
Since
7.0
Pre-condition
Object is fully constructed

StateAccessor()

MStateAccessor &StateAccessor()const [inline]
Intended Usage : Provides access to the MStateAccessor
Since
7.0
Pre-condition
Object is fully constructed

TransitionObserver()

MTransitionObserver &TransitionObserver()const [inline]
Intended Usage : Provides access to the MTransitionObserver
Since
7.0
Pre-condition
Object is fully constructed

Member Data Documentation

CDataLogger & iDataLogger

CDataLogger &iDataLogger[protected]

The output logging object.

MTransitionObserver & iObserver

MTransitionObserver &iObserver[protected]

The observer of this UnitTest's Transitions.

MStateAccessor & iStateAccessor

MStateAccessor &iStateAccessor[protected]

WhiteBox state access to the class under test.