private void Write(MidiFile midiFile, Action <WritingSettings> setupCompression, Action <FileInfo, FileInfo> fileInfosAction) { MidiFileTestUtilities.Write( midiFile, filePath => { var fileInfo = new FileInfo(filePath); var writingSettings = new WritingSettings(); setupCompression(writingSettings); MidiFileTestUtilities.Write( midiFile, filePath2 => { var fileInfo2 = new FileInfo(filePath2); fileInfosAction(fileInfo, fileInfo2); }, writingSettings); }, new WritingSettings()); }
private void Write_Compression_Obsolete(MidiFile midiFile, CompressionPolicy compressionPolicy, Action <FileInfo, FileInfo> fileInfosAction) { MidiFileTestUtilities.Write( midiFile, filePath => { var fileInfo = new FileInfo(filePath); MidiFileTestUtilities.Write( midiFile, filePath2 => { var fileInfo2 = new FileInfo(filePath2); fileInfosAction(fileInfo, fileInfo2); }, new WritingSettings { CompressionPolicy = compressionPolicy }); }, new WritingSettings { CompressionPolicy = CompressionPolicy.NoCompression }); }