Implemented interface member:
method
GetHandler
System.Windows.Forms.Design.IEventHandlerService.GetHandler(System.Type)
10 references to GetHandler
System.Windows.Forms.Design.Tests (10)
System\Windows\Forms\Design\EventHandlerServiceTests.cs (10)
24
Assert.Throws<ArgumentNullException>(() => service.
GetHandler
(null));
32
Assert.Null(service.
GetHandler
(typeof(object)));
44
Assert.Same(second, service.
GetHandler
(typeof(A)));
54
object foundHandler = service.
GetHandler
(typeof(A));
56
foundHandler = service.
GetHandler
(typeof(A));
69
object foundHandler = service.
GetHandler
(typeof(A));
83
Assert.Null(service.
GetHandler
(typeof(int)));
116
Assert.Same(a, service.
GetHandler
(typeof(A)));
126
Assert.Null(service.
GetHandler
(typeof(A)));
163
Assert.Same(a2, service.
GetHandler
(typeof(A)));