Exemplo n.º 1
0
        public void MakeFilenameFromTags()
        {
            if (System.IO.File.Exists(@"tests\Led Zeppelin - Kashmir.mp3"))
            {
                System.IO.File.Delete(@"tests\Led Zeppelin - Kashmir.mp3");
            }
            System.IO.File.Copy(filePathForName, filePathForNameCopy);

            var renamer = new FileRenamer(directory);

            renamer.MakeFileNames(new string[] { filePathForNameCopy });

            Assert.AreEqual(true, System.IO.File.Exists(@"tests\Led Zeppelin - Kashmir.mp3"));
        }