示例#1
0
        public void can_request_the_errors_screen()
        {
            DataMother.LoadMathProject();
            var factory = ObjectFactory.GetInstance <IScreenFactory>();

            ObjectFactory.GetInstance <GrammarErrorsSubject>().CreateScreen(factory).ShouldNotBeNull();
        }
示例#2
0
        public void SetUp()
        {
            ProjectPersistor.DeleteHistoryFile();
            Bootstrapper.Restart();

            _objectLocator = ObjectFactory.GetInstance <IScreenObjectLocator>();
            factory        = ObjectFactory.GetInstance <IScreenFactory>();

            DataMother.LoadMathProject();
        }
示例#3
0
        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();
        }