Exemplo n.º 1
0
 public AddTestModuleCommand(IVBE vbe, RubberduckParserState state, IGeneralConfigService configLoader, IMessageBox messageBox, IVBEInteraction interaction)
     : base(LogManager.GetCurrentClassLogger())
 {
     Vbe           = vbe;
     _state        = state;
     _configLoader = configLoader;
     _messageBox   = messageBox;
     _interaction  = interaction;
 }
Exemplo n.º 2
0
 public TestCodeGenerator(
     IVBE vbe,
     RubberduckParserState state,
     IMessageBox messageBox,
     IVBEInteraction interaction,
     IConfigProvider <UnitTestSettings> settings,
     IIndenter indenter,
     ICompilationArgumentsProvider argumentsProvider)
 {
     _isAccess          = "AccessApp".Equals(vbe?.HostApplication()?.GetType().Name);
     _state             = state;
     _messageBox        = messageBox;
     _interaction       = interaction;
     _settings          = settings;
     _indenter          = indenter;
     _argumentsProvider = argumentsProvider;
 }
Exemplo n.º 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;

            // avoid nulls in results by outcome
            foreach (TestOutcome outcome in Enum.GetValues(typeof(TestOutcome)))
            {
                resultsByOutcome.Add(outcome, new List <TestMethod>());
            }
        }
Exemplo n.º 4
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;
        }
Exemplo n.º 5
0
 public AddTestComponentCommand(IVBE vbe, RubberduckParserState state, IGeneralConfigService configLoader, IMessageBox messageBox, IVBEInteraction interaction)
     : base(vbe, state, configLoader, messageBox, interaction)
 {
 }