protected MutantViewerViewModel(SourceClassDetail source) { _source = source; _silently = false; MutantList = ListBoxEditViewModel.CreateListBoxEdit(); _outputLogger = new CommandPromptOutputLogger(); ChkExecuteAllTests = ControlViewModel.Create(); ChkEnableDiagnostic = ControlViewModel.Create(); ChkEnableCodeCoverage = ControlViewModel.CreateWithChecked(); ChkAnalyzeExternalCoverage = ControlViewModel.Create(); ChkOptimizeTestProject = ControlViewModel.CreateWithChecked(); ChkUseClassFilter = ControlViewModel.CreateWithChecked(); ChkRealTimeAnalysis = ControlViewModel.Create(); _testDiagnosticDocumentViewModel = _outputLogger.GetLogFromOutput("Test Diagnostics Window", string.Empty); _buildDiagnosticDocumentViewModel = _outputLogger.GetLogFromOutput("Build Diagnostics Window", string.Empty); InitItemSources(); _directoryFactory = new TestDirectoryFactory(_source); _mutantInitializer = new MutantInitializer(_source); _previousMutants = new Dictionary <string, MutantStatus>(); _isRealMutationAnalysisRunning = false; _isClosed = false; }
public MutantExecutor(SourceClassDetail source, MuTestSettings settings) { _source = source ?? throw new ArgumentNullException(nameof(source)); _directoryFactory = new TestDirectoryFactory(_source); _settings = settings; }