Partager via


ExpectedEvent Constructor

Initializes a new instance of the ExpectedEvent structure.

Namespace: Microsoft.SpecExplorer.Runtime.Testing
Assembly: Microsoft.SpecExplorer.Runtime (in Microsoft.SpecExplorer.Runtime.dll)

Usage

'Usage

Syntax

'Declaration
public ExpectedEvent (
    EventInfo eventInfo,
    Object target,
    Delegate checker
)

Parameters

  • eventInfo
    The reflection information for the event.
  • target
    The object that is expected to raise the event; or null, for a static event or an event raised by the adapter.
  • checker
    The method to call when the event arrives.

Platforms

Development Platforms

Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP SP2 or later, Microsoft Windows Server 2008, Microsoft Windows Server 2003

See Also

Reference

ExpectedEvent Structure
ExpectedEvent Members
Microsoft.SpecExplorer.Runtime.Testing Namespace