예제 #1
0
 public InstrumentCommand(IServiceProvider serviceProvider,
                          VerbosityOption verbosityOption,
                          WorkingDirectoryOption workingDirectoryOption,
                          ParentDirectoryOption parentDirOption,
                          IncludeAssembliesPatternOption includeAssembliesOption,
                          ExcludeAssembliesPatternOption excludeAssembliesOption,
                          IncludeSourcesPatternOption includeSourceOption,
                          ExcludeSourcesPatternOption excludeSourceOption,
                          IncludeTestsPatternOption includeTestsOption,
                          ExcludeTestsPatternOption excludeTestsOption,
                          HitsDirectoryOption hitsDirectoryOption,
                          CoverageFileOption coverageFileOption,
                          IInstrumenter instrumenter)
 {
     _serviceProvider         = serviceProvider;
     _verbosityOption         = verbosityOption;
     _workingDirectoryOption  = workingDirectoryOption;
     _parentDirOption         = parentDirOption;
     _includeAssembliesOption = includeAssembliesOption;
     _excludeAssembliesOption = excludeAssembliesOption;
     _includeSourceOption     = includeSourceOption;
     _excludeSourceOption     = excludeSourceOption;
     _includeTestsOption      = includeTestsOption;
     _excludeTestsOption      = excludeTestsOption;
     _hitsDirectoryOption     = hitsDirectoryOption;
     _coverageFileOption      = coverageFileOption;
     _instrumenter            = instrumenter;
 }
예제 #2
0
 public Flipper(IAdapter adapter, IInstrumenter instrumenter)
 {
     if (instrumenter == null)
     {
         throw new ArgumentNullException("instrumenter");
     }
     Instrumenter = instrumenter;
     Adapter      = new InstrumentedAdapterDecorator(adapter, Instrumenter);
 }
예제 #3
0
 public InstrumentCommandHandler(
     IFileSystem fileSystem,
     IInstrumenter instrumenter,
     ILogger <InstrumentCommandHandler> logger)
 {
     _fileSystem   = fileSystem;
     _instrumenter = instrumenter;
     _logger       = logger;
 }
예제 #4
0
 public Feature(string name, IAdapter adapter, IInstrumenter instrumenter)
 {
     if (instrumenter == null)
     {
         throw new ArgumentNullException("instrumenter");
     }
     Name = name;
     Adapter = adapter;
     Instrumenter = instrumenter;
 }
예제 #5
0
 public Feature(string name, IAdapter adapter, IInstrumenter instrumenter)
 {
     if (instrumenter == null)
     {
         throw new ArgumentNullException("instrumenter");
     }
     Name         = name;
     Adapter      = adapter;
     Instrumenter = instrumenter;
 }
 public InstrumentedAdapterDecorator(IAdapter adapter, IInstrumenter instrumenter)
 {
     Adapter = adapter;
     Instrumenter = instrumenter;
 }
 public InstrumentedAdapterDecorator(IAdapter adapter, IInstrumenter instrumenter)
 {
     Adapter      = adapter;
     Instrumenter = instrumenter;
 }
예제 #8
0
 public FileInstrumenter(IInstrumenter instrumenter, bool verbose)
 {
     Verbose = verbose;
     this.instrumenter = instrumenter;
 }
예제 #9
0
 public FileInstrumenter(bool verbose)
 {
     Verbose = verbose;
     instrumenter = new JavaScriptInstrumenter();
 }
        public void Setup()
        {
            instrumenter = Substitute.For<IInstrumenter>();

            fileInstrumenter = new FileInstrumenter(instrumenter, false);
        }