xpaulbettsx/NSync — pull request #10 by thoemmi (2012-06-15 19:58:00+00:00)
Title: Release entry creates invalid entries

If you call `ReleaseEntry.GenerateFromFile`, `ReleaseEntry.Filename` (and `ReleaseEntry.EntryAsString` consecutively) contains the complete path of the file. Passing that string to `ReleaseEntry.ParseReleaseEntry` fails, because the regular expression can't cope with it, especially if the path contains spaces.

This PR contains both a failing test and the fix.

Although you use `System.IO.Abstraction` all over the place, I used `System.IO.Path.GetFilename` since it doesn't care if the file really exists. However, you might change it.