public Task ParsesFileName() { // act var actual = _parser.Parse(_filename); // assert return(Verify(actual)); }
public IFileInfo Rename(IFileInfo file) { if (!_parser.IsEpisode(file.Name)) { throw new BadEpisodeFileException(nameof(file), file.Name); } var item = _parser.Parse(file.Name); item = _populator.Populate(item); return(_mover.Move(file, item)); }