public void ViewStateWatcher_Hears_When_View_Is_Enabled() { bool heardEvent = false; context.Configure(new ContextView(contextViewObject)); IViewStateWatcher actual = context.injector.GetInstance <IViewStateWatcher>() as IViewStateWatcher; actual.enabled += delegate(object obj) { heardEvent = true; }; contextViewObject.Enable(); Assert.That(heardEvent, Is.True); }