Ejemplo n.º 1
0
        public Coverage(string moduleOrDirectory,
                        CoverageParameters parameters,
                        ILogger logger,
                        IInstrumentationHelper instrumentationHelper,
                        IFileSystem fileSystem,
                        ISourceRootTranslator sourceRootTranslator,
                        ICecilSymbolHelper cecilSymbolHelper)
        {
            _moduleOrAppDirectory    = moduleOrDirectory;
            _includeFilters          = parameters.IncludeFilters;
            _includeDirectories      = parameters.IncludeDirectories ?? Array.Empty <string>();
            _excludeFilters          = parameters.ExcludeFilters;
            _excludedSourceFiles     = parameters.ExcludedSourceFiles;
            _excludeAttributes       = parameters.ExcludeAttributes;
            _includeTestAssembly     = parameters.IncludeTestAssembly;
            _singleHit               = parameters.SingleHit;
            _mergeWith               = parameters.MergeWith;
            _useSourceLink           = parameters.UseSourceLink;
            _doesNotReturnAttributes = parameters.DoesNotReturnAttributes;
            _logger = logger;
            _instrumentationHelper = instrumentationHelper;
            _fileSystem            = fileSystem;
            _sourceRootTranslator  = sourceRootTranslator;
            _cecilSymbolHelper     = cecilSymbolHelper;
            _skipAutoProps         = parameters.SkipAutoProps;

            _identifier = Guid.NewGuid().ToString();
            _results    = new List <InstrumenterResult>();
        }
Ejemplo n.º 2
0
 public Coverage(CoveragePrepareResult prepareResult,
                 ILogger logger,
                 IInstrumentationHelper instrumentationHelper,
                 IFileSystem fileSystem,
                 ISourceRootTranslator sourceRootTranslator)
 {
     Identifier            = prepareResult.Identifier;
     _moduleOrAppDirectory = prepareResult.ModuleOrDirectory;
     _parameters           = prepareResult.Parameters;
     _results = new List <InstrumenterResult>(prepareResult.Results);
     _logger  = logger;
     _instrumentationHelper = instrumentationHelper;
     _fileSystem            = fileSystem;
     _sourceRootTranslator  = sourceRootTranslator;
 }
Ejemplo n.º 3
0
 public Coverage(string moduleOrDirectory,
                 CoverageParameters parameters,
                 ILogger logger,
                 IInstrumentationHelper instrumentationHelper,
                 IFileSystem fileSystem,
                 ISourceRootTranslator sourceRootTranslator,
                 ICecilSymbolHelper cecilSymbolHelper)
 {
     _moduleOrAppDirectory = moduleOrDirectory;
     parameters.IncludeDirectories ??= Array.Empty <string>();
     _logger = logger;
     _instrumentationHelper = instrumentationHelper;
     _parameters            = parameters;
     _fileSystem            = fileSystem;
     _sourceRootTranslator  = sourceRootTranslator;
     _cecilSymbolHelper     = cecilSymbolHelper;
     Identifier             = Guid.NewGuid().ToString();
     _results = new List <InstrumenterResult>();
 }