Exemplo n.º 1
0
        public void ResetStream()
        {
            _fileStream.Position = 0;
            var stream = new MemoryStream();

            _fileStream.CopyTo(stream);
            stream.Position = 0;
            _classic        = new HolidayProcessorClassicBenchmark(stream);
            _span           = new HolidayProcessorBenchmark(stream);
        }
Exemplo n.º 2
0
 public void Setup()
 {
     _classic = new HolidayProcessorClassicBenchmark(File);
     _span    = new HolidayProcessorBenchmark(File);
 }