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