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)
26Assert.Throws<ArgumentNullException>(() => service.GetHandler(null)); 34Assert.Null(service.GetHandler(typeof(object))); 46Assert.Same(second, service.GetHandler(typeof(A))); 56object foundHandler = service.GetHandler(typeof(A)); 58foundHandler = service.GetHandler(typeof(A)); 71object foundHandler = service.GetHandler(typeof(A)); 85Assert.Null(service.GetHandler(typeof(int))); 118Assert.Same(a, service.GetHandler(typeof(A))); 128Assert.Null(service.GetHandler(typeof(A))); 165Assert.Same(a2, service.GetHandler(typeof(A)));