Esempio n. 1
0
        public void GetEventDelegate_StaticEventHandlerT_NotNull()
        {
            var eventRef = FindEvent(_goodTypeIsValidEventDelegate, "StaticEvent");

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

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

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

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

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

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