Table of Contents

Class EventAsserts.RaisedEvent<T>

Namespace
Asserts
Assembly
xunit.v3.assert.dll

Represents a raised event after the fact.

public class EventAsserts.RaisedEvent<T>

Type Parameters

T

The type of the event arguments.

Inheritance
EventAsserts.RaisedEvent<T>
Inherited Members

Examples

Add an example for this method ?

Contribution guide.

Constructors

RaisedEvent(object?, T)

Creates a new instance of the EventAsserts.RaisedEvent<T> class.

public RaisedEvent(object? sender, T args)

Parameters

sender object

The sender of the event.

args T

The event arguments

Examples

Add an example for this method ?

Contribution guide.

RaisedEvent(T)

Creates a new instance of the EventAsserts.RaisedEvent<T> class.

public RaisedEvent(T args)

Parameters

args T

The event arguments

Examples

Add an example for this method ?

Contribution guide.

Properties

Arguments

The event arguments.

public T Arguments { get; }

Property Value

T

Examples

Add an example for this method ?

Contribution guide.

Sender

The sender of the event. When the event is recorded via Action<T> rather than EventHandler<TEventArgs>, this value will always be null, since there is no sender value when using actions.

public object? Sender { get; }

Property Value

object

Examples

Add an example for this method ?

Contribution guide.