public void IsValidTarget_IsValid_NoCreate()
        {
            var testFolder = new DirectoryInfo("ValidNoCreateTest");

            testFolder.Create();

            var target = new LocalDirectoryTarget(testFolder.FullName);

            testFolder.Refresh();
            ISongDownloadTarget_TestTemplates.IsValidTarget_IsValid_NoCreate(target);
        }
        public void IsValidTarget_IsNotValid_NoCreate()
        {
            var testFolder = new DirectoryInfo("InvalidNoCreateTest");
            var target     = new LocalDirectoryTarget(testFolder.FullName);

            testFolder.Refresh();
            if (testFolder.Exists)
            {
                testFolder.Delete(true);
            }
            testFolder.Refresh();
            ISongDownloadTarget_TestTemplates.IsValidTarget_IsNotValid_NoCreate(target);
        }
        public void IsValidTarget_IsNotValid_CreateIfMissing()
        {
            var invalidFolderName = new DirectoryInfo("Invalid*?");

            try
            {
                var target = new LocalDirectoryTarget(invalidFolderName.FullName, false);
                ISongDownloadTarget_TestTemplates.IsValidTarget_IsNotValid_CreateIfMissing(target);
            }catch (ArgumentException ex)
            {
                Assert.IsTrue(ex.ParamName.Equals("directory"));
            }
        }
        public void TransferSongs_SourceOnly()
        {
            var target = new LocalDirectoryTarget("TestDestSongs");

            ISongDownloadTarget_TestTemplates.TransferSongs_Test(target);
        }