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

A static helper to Verify that Setup/Teardown 'events' occur, and that they are in the correct order... More...

Classes

class  EventMatcher
 A helper class for matching test events. More...
 
class  ExpectedEventsRecorder
 Helper class for recording expected events. More...
 

Static Public Member Functions

static void RegisterEvent (string evnt)
 Registers an event. More...
 
static void Verify (params string[] expectedEvents)
 Verifies the specified expected events occurred and that they occurred in the specified order. More...
 
static ExpectedEventsRecorder ExpectEvents (params string[] expectedEvents)
 Record the specified events as recorded expected events. More...
 
static void Clear ()
 Clears any unverified events. More...
 

Static Private Member Functions

static SimpleEventRecorder ()
 Initializes the SimpleEventRecorder 'static' class. More...
 

Static Private Attributes

static Queue< string > _events
 

Detailed Description

A static helper to Verify that Setup/Teardown 'events' occur, and that they are in the correct order...

Constructor & Destructor Documentation

static NUnit.TestUtilities.SimpleEventRecorder.SimpleEventRecorder ( )
inlinestaticprivate

Initializes the SimpleEventRecorder 'static' class.

Member Function Documentation

static void NUnit.TestUtilities.SimpleEventRecorder.RegisterEvent ( string  evnt)
inlinestatic

Registers an event.

Parameters
evntThe event to register.

Referenced by NoNamespaceSetupFixture.DoNamespaceSetUp(), NoNamespaceSetupFixture.DoNamespaceTearDown(), and SomeFixture.Test().

static void NUnit.TestUtilities.SimpleEventRecorder.Verify ( params string[]  expectedEvents)
inlinestatic

Verifies the specified expected events occurred and that they occurred in the specified order.

Parameters
expectedEventsThe expected events.

References NUnit.Framework.Assert.AreEqual().

static ExpectedEventsRecorder NUnit.TestUtilities.SimpleEventRecorder.ExpectEvents ( params string[]  expectedEvents)
inlinestatic

Record the specified events as recorded expected events.

Parameters
expectedEventsAn array of strings identifying the test events
Returns
An ExpectedEventsRecorder so that further expected events can be recorded and verified
static void NUnit.TestUtilities.SimpleEventRecorder.Clear ( )
inlinestatic

Clears any unverified events.

Member Data Documentation

Queue<string> NUnit.TestUtilities.SimpleEventRecorder._events
staticprivate

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