示例#1
0
        public void SetUp()
        {
            _file      = MockRepository.GenerateStub <IFile>();
            _directory = MockRepository.GenerateStub <IDirectory>();

            _fileMover = new SingleFileMover(_file, _directory);
        }
示例#2
0
        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);
        }