public void GenerateReleaseFolderNames(string input, string releaseDate, string artistFolder, string shouldBe)
        {
            var af            = new DirectoryInfo(Path.Combine(Configuration.LibraryFolder, artistFolder));
            var releaseFolder = FolderPathHelper.ReleasePath(af.FullName, input, SafeParser.ToDateTime(releaseDate).Value);
            var t             = new DirectoryInfo(Path.Combine(Configuration.LibraryFolder, shouldBe));

            Assert.Equal(t.FullName, releaseFolder);
        }
Exemple #2
0
 /// <summary>
 ///     Return this releases file folder for the given artist folder
 /// </summary>
 /// <param name="artistFolder"></param>
 /// <returns></returns>
 public string ReleaseFileFolder(string artistFolder, bool createIfNotFound = false) => FolderPathHelper.ReleasePath(artistFolder, SortTitleValue, ReleaseDate.Value, createIfNotFound);
Exemple #3
0
 /// <summary>
 /// Return this releases file folder for the given artist folder
 /// </summary>
 /// <param name="artistFolder"></param>
 /// <returns></returns>
 public string ReleaseFileFolder(string artistFolder)
 {
     return(FolderPathHelper.ReleasePath(artistFolder, this.Title, this.ReleaseDate.Value));
 }