7 instantiations of RaisedEvent
Microsoft.DotNet.XUnitAssert.Tests (1)
EventAssertsTests.cs (1)
160 void handler(object? s, object args) => raisedEvent = new Assert.RaisedEvent<object>(s, args);
xunit.assert (6)
EventAsserts.cs (6)
364 void handler(object? s, EventArgs args) => raisedEvent = new RaisedEvent<EventArgs>(s, args); 384 Action<T> handler = (T args) => raisedEvent = new RaisedEvent<T>(args); 404 void handler(object? s, T args) => raisedEvent = new RaisedEvent<T>(s, args); 470 void handler(object? s, EventArgs args) => raisedEvent = new RaisedEvent<EventArgs>(s, args); 494 Action<T> handler = (T args) => raisedEvent = new RaisedEvent<T>(args); 517 void handler(object? s, T args) => raisedEvent = new RaisedEvent<T>(s, args);
63 references to RaisedEvent
Microsoft.DotNet.XUnitAssert.Tests (18)
EventAssertsTests.cs (18)
55 var evt = Assert.Raises<object>( 120 var evt = Assert.Raises<object>( 159 Assert.RaisedEvent<object>? raisedEvent = null; 162 var evt = Assert.Raises( 205 var evt = Assert.RaisesAny<object>( 222 var evt = Assert.RaisesAny<object>( 286 var evt = Assert.RaisesAny<object>( 303 var evt = Assert.RaisesAny( 320 var evt = Assert.RaisesAny<object>( 337 var evt = Assert.RaisesAny( 379 var evt = await Assert.RaisesAnyAsync<object>( 396 var evt = await Assert.RaisesAnyAsync<object>( 460 var evt = await Assert.RaisesAnyAsync<object>( 477 var evt = await Assert.RaisesAnyAsync( 494 var evt = await Assert.RaisesAnyAsync<object>( 511 var evt = await Assert.RaisesAnyAsync( 570 var evt = await Assert.RaisesAsync<object>( 635 var evt = await Assert.RaisesAsync<object>(
xunit.assert (45)
EventAsserts.cs (45)
60 public static RaisedEvent<T> Raises<T>( 65 var raisedEvent = RaisesInternal(attach, detach, testCode); 85 public static RaisedEvent<T> Raises<T>( 90 var raisedEvent = RaisesInternal(attach, detach, testCode); 111 public static RaisedEvent<T> Raises<T>( 113 Func<RaisedEvent<T>?> handler, 121 var raisedEvent = RaisesInternal(handler, attach, detach, testCode); 140 public static RaisedEvent<EventArgs> RaisesAny( 145 var raisedEvent = RaisesInternal(attach, detach, testCode); 162 public static RaisedEvent<T> RaisesAny<T>( 167 var raisedEvent = RaisesInternal(attach, detach, testCode); 184 public static RaisedEvent<T> RaisesAny<T>( 189 var raisedEvent = RaisesInternal(attach, detach, testCode); 205 public static async Task<RaisedEvent<EventArgs>> RaisesAnyAsync( 210 var raisedEvent = await RaisesAsyncInternal(attach, detach, testCode); 227 public static async Task<RaisedEvent<T>> RaisesAnyAsync<T>( 232 var raisedEvent = await RaisesAsyncInternal(attach, detach, testCode); 249 public static async Task<RaisedEvent<T>> RaisesAnyAsync<T>( 254 var raisedEvent = await RaisesAsyncInternal(attach, detach, testCode); 288 public static async Task<RaisedEvent<T>> RaisesAsync<T>( 293 var raisedEvent = await RaisesAsyncInternal(attach, detach, testCode); 313 public static async Task<RaisedEvent<T>> RaisesAsync<T>( 318 var raisedEvent = await RaisesAsyncInternal(attach, detach, testCode); 350 static RaisedEvent<EventArgs>? RaisesInternal( 362 var raisedEvent = default(RaisedEvent<EventArgs>); 375 static RaisedEvent<T>? RaisesInternal<T>( 383 var raisedEvent = default(RaisedEvent<T>); 394 static RaisedEvent<T>? RaisesInternal<T>( 402 var raisedEvent = default(RaisedEvent<T>); 416 static RaisedEvent<T>? RaisesInternal<T>( 417 Func<RaisedEvent<T>?> handler, 456 static async Task<RaisedEvent<EventArgs>?> RaisesAsyncInternal( 468 var raisedEvent = default(RaisedEvent<EventArgs>); 481 static async Task<RaisedEvent<T>?> RaisesAsyncInternal<T>( 493 var raisedEvent = default(RaisedEvent<T>); 503 static async Task<RaisedEvent<T>?> RaisesAsyncInternal<T>( 515 var raisedEvent = default(RaisedEvent<T>); 550 /// Creates a new instance of the <see cref="RaisedEvent{T}" /> class. 558 /// Creates a new instance of the <see cref="RaisedEvent{T}" /> class.