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.EventMatcher Class Reference

A helper class for matching test events. More...

+ Collaboration diagram for NUnit.TestUtilities.SimpleEventRecorder.EventMatcher:

Public Member Functions

 EventMatcher (IEnumerable< string > expectedEvents)
 
bool MatchEvent (string @event, int item)
 Matches a test event with one of the expected events. More...
 

Private Attributes

readonly List< string > _expectedEvents
 

Detailed Description

A helper class for matching test events.

Constructor & Destructor Documentation

NUnit.TestUtilities.SimpleEventRecorder.EventMatcher.EventMatcher ( IEnumerable< string >  expectedEvents)
inline

Member Function Documentation

bool NUnit.TestUtilities.SimpleEventRecorder.EventMatcher.MatchEvent ( string @  event,
int  item 
)
inline

Matches a test event with one of the expected events.

Parameters
eventA string identifying the test event
itemThe index of the recorded test event
Returns
true, if there are expected events left to match, otherwise false.

References NUnit.Framework.Assert.Contains().

Member Data Documentation

readonly List<string> NUnit.TestUtilities.SimpleEventRecorder.EventMatcher._expectedEvents
private

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