public void AutoStartupWithLateViewComponentAfterAddedToStage() { contextView = new TestContextView(); context = new Robotlegs.Mvcs.Support.TestContext( null, true ); Action<Event> callback = delegate( Event e ) { Assert.IsTrue( context.StartupComplete, "Context should be started" ); EnqueueTestComplete(); }; context.AddEventListener( ContextEvent.STARTUP_COMPLETE, callback ); Assert.IsFalse( context.StartupComplete, "Context should not be started" ); context.ContextView = contextView; Assert.IsFalse( context.StartupComplete, "Context should still not be started" ); TestPanel.Children.Add( contextView ); }