IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.TestUtilities.SimpleEventRecorder.ExpectedEventsRecorder Class Reference

Helper class for recording expected events. More...

Public Member Functions

 ExpectedEventsRecorder (Queue< string > actualEvents, params string[] expectedEvents)
 
ExpectedEventsRecorder AndThen (params string[] expectedEvents)
 Adds the specified events as expected events. More...
 
void Verify ()
 Verifies the recorded expected events with the actual recorded events. More...
 

Private Attributes

readonly Queue< string > _actualEvents
 
readonly Queue< EventMatcher_eventMatchers
 

Detailed Description

Helper class for recording expected events.

Constructor & Destructor Documentation

NUnit.TestUtilities.SimpleEventRecorder.ExpectedEventsRecorder.ExpectedEventsRecorder ( Queue< string >  actualEvents,
params string[]  expectedEvents 
)
inline

Member Function Documentation

ExpectedEventsRecorder NUnit.TestUtilities.SimpleEventRecorder.ExpectedEventsRecorder.AndThen ( params string[]  expectedEvents)
inline

Adds the specified events as expected events.

Parameters
expectedEventsAn array of strings identifying the test events
Returns
Returns the ExpectedEventsRecorder for adding new expected events.
void NUnit.TestUtilities.SimpleEventRecorder.ExpectedEventsRecorder.Verify ( )
inline

Verifies the recorded expected events with the actual recorded events.

References NUnit.Framework.Assert.Fail().

Member Data Documentation

readonly Queue<string> NUnit.TestUtilities.SimpleEventRecorder.ExpectedEventsRecorder._actualEvents
private
readonly Queue<EventMatcher> NUnit.TestUtilities.SimpleEventRecorder.ExpectedEventsRecorder._eventMatchers
private

The documentation for this class was generated from the following file: