public void SetUp() { _file = MockRepository.GenerateStub <IFile>(); _directory = MockRepository.GenerateStub <IDirectory>(); _fileMover = new SingleFileMover(_file, _directory); }
private void MoveOutputFile(string file) { var fileMover = new SingleFileMover(); if (Profile.AutoSave.Enabled && Profile.AutoSave.EnsureUniqueFilenames) { fileMover.UniqueFileNameEnabled = true; } var movedFile = fileMover.MoveSingleOutputFile(file, OutputFilenameTemplate); OutputFiles.Add(movedFile); }