示例#1
0
        public void GetEventDelegate_StaticEventHandlerT_NotNull()
        {
            var eventRef = FindEvent(_goodTypeIsValidEventDelegate, "StaticEvent");

            Assert.IsNotNull(EventDefinitionExtensions.GetEventDelegate(eventRef));
        }
示例#2
0
        public void GetEventDelegate_GenericCustomArgsEvent_NotNull()
        {
            var eventRef = FindEvent(_goodTypeIsValidEventDelegate, "GenericCustomArgsEvent");

            Assert.IsNotNull(EventDefinitionExtensions.GetEventDelegate(eventRef));
        }
示例#3
0
        public void GetEventDelegate_PropertyChangedEventHandler_NotNull()
        {
            var eventRef = FindEvent(_goodTypeIsValidEventDelegate, "SpecializedEvent");

            Assert.IsNotNull(EventDefinitionExtensions.GetEventDelegate(eventRef));
        }
示例#4
0
        public void GetEventDelegate_InstanceEventRemoveUsesStaticDelegate_Null()
        {
            var eventRef = FindEvent(_eventWithUnknownBackingDelegate, "InstanceEventRemoveUsesStaticDelegate");

            Assert.IsNull(EventDefinitionExtensions.GetEventDelegate(eventRef));
        }
示例#5
0
        public void GetEventDelegate_TooManyDelegates_Null()
        {
            var eventRef = FindEvent(_eventWithUnknownBackingDelegate, "MultipleEventDelegates");

            Assert.IsNull(EventDefinitionExtensions.GetEventDelegate(eventRef));
        }
示例#6
0
        public void GetEventDelegate_NotUsedInAdd_Null()
        {
            var eventRef = FindEvent(_eventWithUnknownBackingDelegate, "EventNotUsedInAdd");

            Assert.IsNull(EventDefinitionExtensions.GetEventDelegate(eventRef));
        }