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
TThe 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
senderobjectThe sender of the event.
argsTThe 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
argsTThe 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
Examples
Add an example for this method ?
Contribution guide.