From 21be6c1ffeaba8a9647df8e72bd2af7cfd442e9e Mon Sep 17 00:00:00 2001 From: Jan Krivanek Date: Mon, 21 Nov 2022 08:37:15 +0100 Subject: [PATCH] Upgrade EmptyFiles --- .../{target.txt => nuget.config} | 0 .../{target.txt => web.config} | 0 src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs | 7 ------- .../dotnet-new.Tests/dotnet-new.IntegrationTests.csproj | 2 ++ 4 files changed, 2 insertions(+), 7 deletions(-) rename src/Tests/dotnet-new.Tests/Approvals/AllCommonItemsCreate.nugetconfig._.verified/{target.txt => nuget.config} (100%) rename src/Tests/dotnet-new.Tests/Approvals/AllCommonItemsCreate.webconfig._.verified/{target.txt => web.config} (100%) diff --git a/src/Tests/dotnet-new.Tests/Approvals/AllCommonItemsCreate.nugetconfig._.verified/target.txt b/src/Tests/dotnet-new.Tests/Approvals/AllCommonItemsCreate.nugetconfig._.verified/nuget.config similarity index 100% rename from src/Tests/dotnet-new.Tests/Approvals/AllCommonItemsCreate.nugetconfig._.verified/target.txt rename to src/Tests/dotnet-new.Tests/Approvals/AllCommonItemsCreate.nugetconfig._.verified/nuget.config diff --git a/src/Tests/dotnet-new.Tests/Approvals/AllCommonItemsCreate.webconfig._.verified/target.txt b/src/Tests/dotnet-new.Tests/Approvals/AllCommonItemsCreate.webconfig._.verified/web.config similarity index 100% rename from src/Tests/dotnet-new.Tests/Approvals/AllCommonItemsCreate.webconfig._.verified/target.txt rename to src/Tests/dotnet-new.Tests/Approvals/AllCommonItemsCreate.webconfig._.verified/web.config diff --git a/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs b/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs index 5c02b68fd119..4dac15e3795b 100644 --- a/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs +++ b/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs @@ -64,13 +64,6 @@ public async void AllCommonItemsCreate(string expectedTemplateName, string templ }) ); - // TODO: workaround for '.config' files until https://github.com/VerifyTests/EmptyFiles/pull/110 is merged and flown all the way here - // Untill then a stream comparison is used without scrubbing and normalizing BOM, newlines etc. - VerifierSettings.RegisterFileConverter( - "config", - (stream, _) => new(null, "txt", new StringBuilder(new StreamReader(stream).ReadToEnd())) - ); - // globaljson is appending current sdk version. Due to the 'base' dotnet used to run test this version differs // on dev and CI runs and possibly from the version within test host. Easiest is just to scrub it away if (templateShortName.Equals("globaljson") && args == null) diff --git a/src/Tests/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj b/src/Tests/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj index fedd315ec5c0..9d2581377493 100644 --- a/src/Tests/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj +++ b/src/Tests/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj @@ -16,6 +16,8 @@ + +