public void GetEventDelegate_StaticEventHandlerT_NotNull() { var eventRef = FindEvent(_goodTypeIsValidEventDelegate, "StaticEvent"); Assert.IsNotNull(EventDefinitionExtensions.GetEventDelegate(eventRef)); }
public void GetEventDelegate_GenericCustomArgsEvent_NotNull() { var eventRef = FindEvent(_goodTypeIsValidEventDelegate, "GenericCustomArgsEvent"); Assert.IsNotNull(EventDefinitionExtensions.GetEventDelegate(eventRef)); }
public void GetEventDelegate_PropertyChangedEventHandler_NotNull() { var eventRef = FindEvent(_goodTypeIsValidEventDelegate, "SpecializedEvent"); Assert.IsNotNull(EventDefinitionExtensions.GetEventDelegate(eventRef)); }
public void GetEventDelegate_InstanceEventRemoveUsesStaticDelegate_Null() { var eventRef = FindEvent(_eventWithUnknownBackingDelegate, "InstanceEventRemoveUsesStaticDelegate"); Assert.IsNull(EventDefinitionExtensions.GetEventDelegate(eventRef)); }
public void GetEventDelegate_TooManyDelegates_Null() { var eventRef = FindEvent(_eventWithUnknownBackingDelegate, "MultipleEventDelegates"); Assert.IsNull(EventDefinitionExtensions.GetEventDelegate(eventRef)); }
public void GetEventDelegate_NotUsedInAdd_Null() { var eventRef = FindEvent(_eventWithUnknownBackingDelegate, "EventNotUsedInAdd"); Assert.IsNull(EventDefinitionExtensions.GetEventDelegate(eventRef)); }