From 2ddcbe449c41f721912aeafa1d1edfd754670794 Mon Sep 17 00:00:00 2001 From: Bryan Thornbury Date: Mon, 19 Sep 2016 10:54:45 -0700 Subject: [PATCH] kill script extension inference tests --- .../GivenThatIWantToMigrateTestApps.cs | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs b/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs index f9f56c943..89f019c13 100644 --- a/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs +++ b/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs @@ -111,44 +111,6 @@ namespace Microsoft.DotNet.Migration.Tests outputsIdentical.Should().BeTrue(); } - [Fact] - public void It_migrates_an_app_with_scripts_and_the_scripts_run() - { - var oldPathExt = Environment.GetEnvironmentVariable("PATHEXT"); - if (oldPathExt != null) - { - Environment.SetEnvironmentVariable("PATHEXT", ".cmd"); - } - - var projectDirectory = - TestAssetsManager.CreateTestInstance("TestAppWithMigrateableScripts", callingMethod: "i").WithLockFiles().Path; - - BuildProjectJson(projectDirectory); - var projectJsonBuildOutputs = new HashSet(CollectBuildOutputs(projectDirectory)); - CleanBinObj(projectDirectory); - - MigrateProject(projectDirectory); - Restore(projectDirectory); - var msBuildStdOut = BuildMSBuild(projectDirectory); - - var msbuildBuildOutputs = new HashSet(CollectBuildOutputs(projectDirectory)); - - var outputsIdentical = projectJsonBuildOutputs.SetEquals(msbuildBuildOutputs); - outputsIdentical.Should().BeTrue(); - VerifyAllMSBuildOutputsRunnable(projectDirectory); - - var outputDir = - PathUtility.EnsureTrailingSlash(Path.Combine(projectDirectory, "bin", "Debug", "netcoreapp1.0")); - - msBuildStdOut.Should().Contain($"precompile_output ?Debug? ?{outputDir}? ?.NETCoreApp,Version=v1.0?"); - msBuildStdOut.Should().Contain($"postcompile_output ?Debug? ?{outputDir}? ?.NETCoreApp,Version=v1.0?"); - - if (oldPathExt != null) - { - Environment.SetEnvironmentVariable("PATHEXT", oldPathExt); - } - } - private MigratedBuildComparisonData GetDotnetNewComparisonData(string projectDirectory, string dotnetNewType) { DotnetNew(projectDirectory, dotnetNewType);