public void EventsDefinedInBaseAreAttachedToListener() { DerivedEventSource eventSource = new DerivedEventSource(); SingleEventListener eventListener = new SingleEventListener(); ReflectionInstrumentationBinder binder = new ReflectionInstrumentationBinder(); binder.Bind(eventSource, eventListener); eventSource.Raise(); Assert.IsTrue(eventListener.eventWasRaised); }
public void InstrumentationIsAttachedWhenInstrumentedAttributeIsInBaseClass() { DerivedEventSource source = EnterpriseLibraryFactory.BuildUp <DerivedEventSource>("ignore", configSource); Assert.IsTrue(source.IsWired); }