From 9b3b3e91bdcea4263bcb3e8531ae822e96f96210 Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Wed, 1 Mar 2017 22:24:21 -0800 Subject: [PATCH] Re-enable functional tests on full .NET Framework - #5873 - creating an EXE for the test project seems to work around #5873 - also avoids dotnet/sdk#926 when building in Visual Studio nit: clean up duplicate test data --- .../Formatters/TextInputFormatterTest.cs | 2 -- .../Microsoft.AspNetCore.Mvc.FunctionalTests.csproj | 11 +++++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/test/Microsoft.AspNetCore.Mvc.Core.Test/Formatters/TextInputFormatterTest.cs b/test/Microsoft.AspNetCore.Mvc.Core.Test/Formatters/TextInputFormatterTest.cs index f781cdf303..5066df99ba 100644 --- a/test/Microsoft.AspNetCore.Mvc.Core.Test/Formatters/TextInputFormatterTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Core.Test/Formatters/TextInputFormatterTest.cs @@ -114,8 +114,6 @@ public void SelectCharacterEncoding_ReturnsContentTypeEncoding_IfItCanUnderstand [Theory] [InlineData("unicode-1-1-utf-8")] [InlineData("unicode-2-0-utf-8")] - [InlineData("unicode-1-1-utf-8")] - [InlineData("unicode-2-0-utf-8")] public void SelectCharacterEncoding_ReturnsUTF8Encoding_IfContentTypeIsAnAlias(string charset) { // Arrange diff --git a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/Microsoft.AspNetCore.Mvc.FunctionalTests.csproj b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/Microsoft.AspNetCore.Mvc.FunctionalTests.csproj index 3973d5d305..d0ca8b1659 100644 --- a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/Microsoft.AspNetCore.Mvc.FunctionalTests.csproj +++ b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/Microsoft.AspNetCore.Mvc.FunctionalTests.csproj @@ -2,8 +2,15 @@ - netcoreapp1.1 - $(PackageTargetFallback);portable-net451+win8 + netcoreapp1.1;net452 + netcoreapp1.1 + $(PackageTargetFallback);portable-net451+win8 + + + EXE $(DefineConstants);GENERATE_BASELINES $(DefineConstants);__RemoveThisBitTo__GENERATE_BASELINES