diff --git a/src/MockHttp.Json/MockHttp.Json.csproj b/src/MockHttp.Json/MockHttp.Json.csproj index e26cf129..a0509e67 100644 --- a/src/MockHttp.Json/MockHttp.Json.csproj +++ b/src/MockHttp.Json/MockHttp.Json.csproj @@ -1,7 +1,7 @@  - net7.0;net6.0;netstandard2.1;netstandard2.0;net48;net472;net462 + net8.0;net7.0;net6.0;netstandard2.1;netstandard2.0;net48;net472;net462 skwas.MockHttp.Json skwas.MockHttp.Json diff --git a/src/MockHttp.Server/MockHttp.Server.csproj b/src/MockHttp.Server/MockHttp.Server.csproj index f3a4ea56..4bcae8f6 100644 --- a/src/MockHttp.Server/MockHttp.Server.csproj +++ b/src/MockHttp.Server/MockHttp.Server.csproj @@ -1,7 +1,7 @@  - net7.0;net6.0;netcoreapp3.1 + net8.0;net7.0;net6.0;netcoreapp3.1 skwas.MockHttp.Server skwas.MockHttp.Server MockHttp diff --git a/src/MockHttp/MockHttp.csproj b/src/MockHttp/MockHttp.csproj index 1d6890f2..24178556 100644 --- a/src/MockHttp/MockHttp.csproj +++ b/src/MockHttp/MockHttp.csproj @@ -1,7 +1,7 @@  - net7.0;net6.0;netstandard2.1;netstandard2.0;net48;net472;net462 + net8.0;net7.0;net6.0;netstandard2.1;netstandard2.0;net48;net472;net462 skwas.MockHttp skwas.MockHttp diff --git a/test/MockHttp.Json.Tests/MockHttp.Json.Tests.csproj b/test/MockHttp.Json.Tests/MockHttp.Json.Tests.csproj index 49de5eea..1d181cad 100644 --- a/test/MockHttp.Json.Tests/MockHttp.Json.Tests.csproj +++ b/test/MockHttp.Json.Tests/MockHttp.Json.Tests.csproj @@ -1,7 +1,7 @@  - net7.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462 + net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462 true diff --git a/test/MockHttp.Server.Tests/MockHttp.Server.Tests.csproj b/test/MockHttp.Server.Tests/MockHttp.Server.Tests.csproj index 88803a74..96a20ce6 100644 --- a/test/MockHttp.Server.Tests/MockHttp.Server.Tests.csproj +++ b/test/MockHttp.Server.Tests/MockHttp.Server.Tests.csproj @@ -1,12 +1,13 @@ - + - net7.0;net6.0;netcoreapp3.1 + net8.0;net7.0;net6.0;netcoreapp3.1 true MockHttp - 7.0.0 + 8.0.0 + 7.0.0 3.1.0 diff --git a/test/MockHttp.Testing/MockHttp.Testing.csproj b/test/MockHttp.Testing/MockHttp.Testing.csproj index 3d153d7d..c6beb108 100644 --- a/test/MockHttp.Testing/MockHttp.Testing.csproj +++ b/test/MockHttp.Testing/MockHttp.Testing.csproj @@ -1,7 +1,7 @@ - + - net7.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462 + net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462 false diff --git a/test/MockHttp.Tests/Http/HttpHeadersCollectionTests.cs b/test/MockHttp.Tests/Http/HttpHeadersCollectionTests.cs index 4972ab6e..dc2e7e06 100644 --- a/test/MockHttp.Tests/Http/HttpHeadersCollectionTests.cs +++ b/test/MockHttp.Tests/Http/HttpHeadersCollectionTests.cs @@ -48,9 +48,17 @@ public void Given_single_header_string_when_parsing_should_return_key_with_one_o [Theory] [InlineData("no-separator", "The value cannot be null or empty.*")] +#if NET8_0_OR_GREATER + [InlineData(":value", "The value cannot be an empty string or composed entirely of whitespace.*")] +#else [InlineData(":value", "The value cannot be null or empty.*")] +#endif #if NET7_0_OR_GREATER +#if NET8_0_OR_GREATER + [InlineData(" :value", "The value cannot be an empty string or composed entirely of whitespace.*")] +#else [InlineData(" :value", "The header name ' ' has an invalid format.")] +#endif [InlineData(" leading-whitespace-not-allowed:value", "The header name ' leading-whitespace-not-allowed' has an invalid format.")] [InlineData("\tleading-whitespace-not-allowed:value", "The header name '\tleading-whitespace-not-allowed' has an invalid format.")] [InlineData("trailing-whitespace-not-allowed :value", "The header name 'trailing-whitespace-not-allowed ' has an invalid format.")] diff --git a/test/MockHttp.Tests/MockHttp.Tests.csproj b/test/MockHttp.Tests/MockHttp.Tests.csproj index 293351da..77c3a352 100644 --- a/test/MockHttp.Tests/MockHttp.Tests.csproj +++ b/test/MockHttp.Tests/MockHttp.Tests.csproj @@ -1,7 +1,7 @@  - net7.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462 + net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462 true