From a078e8b8458e784cbbf0dc46229bcb826b6fa434 Mon Sep 17 00:00:00 2001 From: Bryan Thornbury Date: Tue, 4 Oct 2016 10:13:01 -0700 Subject: [PATCH] dir --- test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs b/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs index 4bc1b0b27..655919ac5 100644 --- a/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs +++ b/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs @@ -48,7 +48,10 @@ namespace Microsoft.DotNet.Migration.Tests public void It_migrates_dotnet_new_console_with_identical_outputs() { var projectDirectory = Path.Combine(AppContext.BaseDirectory, "newconsoletest"); - Directory.Delete(projectDirectory, true); + if (Directory.Exists(projectDirectory)) + { + Directory.Delete(projectDirectory, true); + } Directory.CreateDirectory(projectDirectory); var outputComparisonData = GetDotnetNewComparisonData(projectDirectory, "console");