Beispiel #1
0
        public TestEngine(TestExplorerModel model, IVBE vbe, RubberduckParserState state, IFakesFactory fakesFactory, IVBETypeLibsAPI typeLibApi, IUiDispatcher uiDispatcher)
        {
            Debug.WriteLine("TestEngine created.");
            Model         = model;
            _vbe          = vbe;
            _state        = state;
            _fakesFactory = fakesFactory;
            _typeLibApi   = typeLibApi;
            _uiDispatcher = uiDispatcher;

            _state.StateChanged += StateChangedHandler;
        }
Beispiel #2
0
        public TestEngine(RubberduckParserState state, IFakesFactory fakesFactory, IVBEInteraction declarationRunner, ITypeLibWrapperProvider wrapperProvider, IUiDispatcher uiDispatcher, IVBE vbe)
        {
            Debug.WriteLine("TestEngine created.");
            _state             = state;
            _fakesFactory      = fakesFactory;
            _declarationRunner = declarationRunner;
            _wrapperProvider   = wrapperProvider;
            _uiDispatcher      = uiDispatcher;
            _vbe = vbe;

            _state.StateChanged += StateChangedHandler;

            // avoid nulls in results by outcome
            foreach (TestOutcome outcome in Enum.GetValues(typeof(TestOutcome)))
            {
                resultsByOutcome.Add(outcome, new List <TestMethod>());
            }
        }
Beispiel #3
0
        public TestEngine(
            RubberduckParserState state,
            IFakesFactory fakesFactory,
            IVBEInteraction declarationRunner,
            ITypeLibWrapperProvider wrapperProvider,
            IUiDispatcher uiDispatcher,
            IVBE vbe)
        {
            Debug.WriteLine("TestEngine created.");
            _state             = state;
            _fakesFactory      = fakesFactory;
            _declarationRunner = declarationRunner;
            _wrapperProvider   = wrapperProvider;
            _uiDispatcher      = uiDispatcher;
            _vbe = vbe;

            _state.StateChanged += StateChangedHandler;
        }