public void CreateBookOnDiskFromTemplate_CreationFailsForSomeReason_DoesNotLeaveIncompleteFolderAround()
{
var source = BloomFileLocator.GetFactoryBookTemplateDirectory( "Basic Book");
var goodPath = _starter.CreateBookOnDiskFromTemplate(source, _projectFolder.Path);
DirectoryUtilities.DeleteDirectoryRobust(goodPath); //remove that good one. We just did it to get an idea of what the path is
//now fail while making a book
_starter.OnNextRunSimulateFailureMakingBook = true;
Assert.Throws<ApplicationException>(() => _starter.CreateBookOnDiskFromTemplate(source, _projectFolder.Path));
Assert.IsFalse(Directory.Exists(goodPath), "Should not have left the folder there, after a failed book creation");
}