Пример #1
0
        public void GetEventArgsType_EventHandlerT_AssemblyLoadEventArgs()
        {
            var eventRef = FindEvent(_goodTypeIsValidEventDelegate, "GenericEvent");

            Assert.AreEqual(typeof(System.AssemblyLoadEventArgs).FullName, EventDefinitionExtensions.GetEventArgsType(eventRef.EventType).FullName);
        }
Пример #2
0
        public void GetEventArgsType_PropertyChangedEventHandler_PropertyChangedEventArgs()
        {
            var eventRef = FindEvent(_goodTypeIsValidEventDelegate, "SpecializedEvent");

            Assert.AreEqual(typeof(System.ComponentModel.PropertyChangedEventArgs).FullName, EventDefinitionExtensions.GetEventArgsType(eventRef.EventType).FullName);
        }