public void can_request_the_errors_screen() { DataMother.LoadMathProject(); var factory = ObjectFactory.GetInstance <IScreenFactory>(); ObjectFactory.GetInstance <GrammarErrorsSubject>().CreateScreen(factory).ShouldNotBeNull(); }
public void SetUp() { ProjectPersistor.DeleteHistoryFile(); Bootstrapper.Restart(); _objectLocator = ObjectFactory.GetInstance <IScreenObjectLocator>(); factory = ObjectFactory.GetInstance <IScreenFactory>(); DataMother.LoadMathProject(); }
public void SetUp() { // This must be done first SynchronizationContext.SetSynchronizationContext(new SynchronizationContext()); ProjectPersistor.DeleteHistoryFile(); Bootstrapper.BootstrapShell(false); listener = new StubTestListener(); var events = ObjectFactory.GetInstance <IEventAggregator>(); SpecificationExtensions.As <EventAggregator>(events).RemoveAllListeners( x => x is StatusPresenter || x is TestExplorer || x is FixtureExplorer || x is TestStatusBar); events.AddListener(listener); DataMother.LoadMathProject(); SpecificationExtensions.As <TestEngine>(ObjectFactory.GetInstance <ITestEngine>()).WaitForProcessing(); }