Skip to content

Commit

Permalink
Test fix for linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard committed Feb 28, 2020
1 parent 3a5e5fa commit 9a4955a
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@ public void FolderToFolderTransfomationTest()
var fileTransformer = new FileTransformer(baseTransformer, ".cs", ".cpp");

// Delete before creation (if previous test failed)
Directory.Delete(sourceFolderPath, true);
Directory.Delete(targetFolderPath, true);
if (Directory.Exists(sourceFolderPath))
{
Directory.Delete(sourceFolderPath, true);
}
if (Directory.Exists(targetFolderPath))
{
Directory.Delete(targetFolderPath, true);
}

Directory.CreateDirectory(sourceFolderPath);
Directory.CreateDirectory(targetFolderPath);
Expand Down

0 comments on commit 9a4955a

Please sign in to comment.