public void IsValidEventDelegate_GenericCustomArgsEvent_True() { var eventRef = FindEvent(_goodTypeIsValidEventDelegate, "GenericCustomArgsEvent"); Assert.IsTrue(EventDefinitionExtensions.IsValidEventDelegate(eventRef.EventType)); }
public void IsValidEventDelegate_SpecializedEvent_True() { var eventRef = FindEvent(_goodTypeIsValidEventDelegate, "SpecializedEvent"); Assert.IsTrue(EventDefinitionExtensions.IsValidEventDelegate(eventRef.EventType)); }
public void IsValidEventDelegate_TooManyArgs_False() { var eventRef = FindEvent(_badTypeIsValidEventDelegate, "EventTooManyArgs"); Assert.IsFalse(EventDefinitionExtensions.IsValidEventDelegate(eventRef.EventType)); }
public void IsValidEventDelegate_Wrong1stArgType_False() { var eventRef = FindEvent(_badTypeIsValidEventDelegate, "EventFirstParamNotObject"); Assert.IsFalse(EventDefinitionExtensions.IsValidEventDelegate(eventRef.EventType)); }
public void IsValidEventDelegate_Wrong2ndArgType_False() { var eventRef = FindEvent(_badTypeIsValidEventDelegate, "EventNotDerivedFromEventArgs"); Assert.IsFalse(EventDefinitionExtensions.IsValidEventDelegate(eventRef.EventType)); }