MockedEvent(TEventArgs) Class

Moq 2.6

Provides a typed MockedEvent for a specific type of EventArgs.

Namespace:  Moq
Assembly:  Moq (in Moq.dll) Version: 2.6.1014.1 (2.6.0.0)

Syntax

C#
public class MockedEvent<TEventArgs> : MockedEvent
where TEventArgs : EventArgs

Type Parameters

TEventArgs
The type of event arguments required by the event.

Remarks

The mocked event can either be a EventHandler or custom event handler which follows .NET practice of providing object sender, EventArgs args kind of signature.

Inheritance Hierarchy

Object
  Moq..::.MockedEvent
    Moq..::.MockedEvent<(Of <(TEventArgs>)>)

See Also