Ejemplo n.º 1
0
 public void Save()
 {
     With.Mocks(_mockRepository).Expecting(delegate
     {
         _dataWriter.Stub(x => x.Dispose());
         _dataWriter.Expect(x => x.Write(_dataReader));
     }).Verify(delegate
     {
         _saveAsSingleFile.Save(_inputFile, _detectors, _dataReaderPool, FileName, _progressReporter, false);
     });
 }
 public void SaveDataPacket()
 {
     With.Mocks(_mockRepository).Expecting(delegate
     {
         _dataReaderPool.Stub(x => x.CreateDataReader(_dataPacket, _progressReporter)).Return(_dataReader);
         _dataWriter.Stub(x => x.Dispose());
         _dataWriter.Expect(x => x.Write(_dataReader));
     }).Verify(delegate
     {
         _saveAsContiguousFile.Save(_dataPacket, _detectors, _dataReaderPool, FileName, _progressReporter, false);
     });
 }