コード例 #1
0
 public MutationTestProcess(MutationTestInput mutationTestInput,
                            IReporter reporter,
                            IMutationTestExecutor mutationTestExecutor,
                            MutantOrchestrator <SyntaxNode> orchestrator = null,
                            IFileSystem fileSystem             = null,
                            IMutantFilter mutantFilter         = null,
                            ICoverageAnalyser coverageAnalyser = null,
                            IStrykerOptions options            = null)
 {
     Input                 = mutationTestInput;
     _projectContents      = mutationTestInput.ProjectInfo.ProjectContents;
     _reporter             = reporter;
     _options              = options;
     _mutationTestExecutor = mutationTestExecutor;
     _logger               = ApplicationLogging.LoggerFactory.CreateLogger <MutationTestProcess>();
     _coverageAnalyser     = coverageAnalyser ?? new CoverageAnalyser(_options, _mutationTestExecutor, Input);
     _mutationProcess      = new CsharpMutationProcess(Input, fileSystem ?? new FileSystem(), _options, mutantFilter, _reporter, orchestrator);
 }
コード例 #2
0
        public MutationTestProcess(MutationTestInput mutationTestInput,
                                   IReporter reporter,
                                   IMutationTestExecutor mutationTestExecutor,
                                   IMutantOrchestrator orchestrator   = null,
                                   IFileSystem fileSystem             = null,
                                   StrykerOptions options             = null,
                                   IMutantFilter mutantFilter         = null,
                                   ICoverageAnalyser coverageAnalyser = null)
        {
            _input                = mutationTestInput;
            _projectInfo          = mutationTestInput.ProjectInfo.ProjectContents;
            _reporter             = reporter;
            _options              = options;
            _mutationTestExecutor = mutationTestExecutor;
            _orchestrator         = orchestrator ?? new MutantOrchestrator(options: _options);
            _fileSystem           = fileSystem ?? new FileSystem();
            _logger               = ApplicationLogging.LoggerFactory.CreateLogger <MutationTestProcess>();
            _coverageAnalyser     = coverageAnalyser ?? new CoverageAnalyser(_options, _mutationTestExecutor, _input);

            SetupMutationTestProcess(mutantFilter);
        }
コード例 #3
0
        public MutationTestProcess(MutationTestInput mutationTestInput,
                                   IReporter reporter,
                                   IMutationTestExecutor mutationTestExecutor,
                                   BaseMutantOrchestrator <SyntaxNode> cSharpOrchestrator = null,
                                   BaseMutantOrchestrator <FSharpList <SynModuleOrNamespace> > fSharpOrchestrator = null,
                                   IFileSystem fileSystem             = null,
                                   IMutantFilter mutantFilter         = null,
                                   ICoverageAnalyser coverageAnalyser = null,
                                   StrykerOptions options             = null)
        {
            Input                 = mutationTestInput;
            _projectContents      = mutationTestInput.ProjectInfo.ProjectContents;
            _reporter             = reporter;
            _options              = options;
            _mutationTestExecutor = mutationTestExecutor;
            _fileSystem           = fileSystem ?? new FileSystem();
            _logger               = ApplicationLogging.LoggerFactory.CreateLogger <MutationTestProcess>();
            _coverageAnalyser     = coverageAnalyser ?? new CoverageAnalyser(_options, _mutationTestExecutor, Input);
            _language             = Input.ProjectInfo.ProjectUnderTestAnalyzerResult.GetLanguage();
            _orchestrator         = cSharpOrchestrator ?? fSharpOrchestrator ?? ChooseOrchestrator(_options);

            SetupMutationTestProcess(mutantFilter);
        }
コード例 #4
0
ファイル: Project.cs プロジェクト: silver83/Zed
 public void AddComponent(IProjectComponent component)
 {
     (Components as List<IProjectComponent>).Add(component);
 }        
コード例 #5
0
ファイル: FolderComposite.cs プロジェクト: wiciok/stryker-net
 public void Add(IProjectComponent child)
 {
     child.Parent = this;
     _children.Add(child);
 }
コード例 #6
0
 public void Add(IProjectComponent child)
 {
     _children.Add(child);
 }
コード例 #7
0
 protected ReadOnlyProjectComponent(IProjectComponent projectComponent)
 {
     _projectComponent = projectComponent;
 }