Updating to netcoreapp1.1

This commit is contained in:
Pranav K 2016-10-12 13:46:53 -07:00
parent 5768f9605e
commit 21fbdcc476
11 changed files with 13 additions and 13 deletions

View File

@ -10,7 +10,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -11,7 +11,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -11,7 +11,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -50,7 +50,7 @@ namespace Microsoft.AspNetCore.Server.WebListener
Assert.Equal("Hello World", response);
}
}
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
[ConditionalFact]
public async Task RequestBody_ReadBeginEnd_Success()
{

View File

@ -81,7 +81,7 @@ namespace Microsoft.AspNetCore.Server.WebListener
Assert.Equal(0, response.ContentLength);
Assert.NotNull(response.Headers["Date"]);
Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers["Server"]);
#if NETCOREAPP1_0 // WebHeaderCollection.GetValues() not available in CoreCLR.
#if NETCOREAPP1_1 // WebHeaderCollection.GetValues() not available in CoreCLR.
Assert.Equal("custom1, and custom2, custom3", response.Headers["WWW-Authenticate"]);
#else
Assert.Equal(new string[] { "custom1, and custom2", "custom3" }, response.Headers.GetValues("WWW-Authenticate"));
@ -109,7 +109,7 @@ namespace Microsoft.AspNetCore.Server.WebListener
Assert.Equal(0, response.ContentLength);
Assert.NotNull(response.Headers["Date"]);
Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers["Server"]);
#if NETCOREAPP1_0 // WebHeaderCollection.GetValues() not available in CoreCLR.
#if NETCOREAPP1_1 // WebHeaderCollection.GetValues() not available in CoreCLR.
Assert.Equal("custom1, and custom2, custom3", response.Headers["Custom-Header1"]);
#else
Assert.Equal(new string[] { "custom1, and custom2", "custom3" }, response.Headers.GetValues("Custom-Header1"));

View File

@ -11,7 +11,7 @@
"xunit": "2.2.0-*"
},
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -129,7 +129,7 @@ namespace Microsoft.Net.Http.Server
var context = await server.AcceptAsync();
context.Response.Headers["Content-lenGth"] = " 20 ";
context.Dispose();
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
// HttpClient retries the request because it didn't get a response.
context = await server.AcceptAsync();
context.Response.Headers["Content-lenGth"] = " 20 ";

View File

@ -221,7 +221,7 @@ namespace Microsoft.Net.Http.Server
Assert.Equal(0, response.ContentLength);
Assert.NotNull(response.Headers["Date"]);
Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers["Server"]);
#if NETCOREAPP1_0 // WebHeaderCollection.GetValues() not available in CoreCLR.
#if NETCOREAPP1_1 // WebHeaderCollection.GetValues() not available in CoreCLR.
Assert.Equal("custom1, and custom2, custom3", response.Headers["WWW-Authenticate"]);
#else
Assert.Equal(new string[] { "custom1, and custom2", "custom3" }, response.Headers.GetValues("WWW-Authenticate"));
@ -250,7 +250,7 @@ namespace Microsoft.Net.Http.Server
Assert.Equal(0, response.ContentLength);
Assert.NotNull(response.Headers["Date"]);
Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers["Server"]);
#if NETCOREAPP1_0 // WebHeaderCollection.GetValues() not available in CoreCLR.
#if NETCOREAPP1_1 // WebHeaderCollection.GetValues() not available in CoreCLR.
Assert.Equal("custom1, and custom2, custom3", response.Headers["Custom-Header1"]);
#else
Assert.Equal(new string[] { "custom1, and custom2", "custom3" }, response.Headers.GetValues("Custom-Header1"));

View File

@ -186,7 +186,7 @@ namespace Microsoft.Net.Http.Server
context.Abort();
Assert.True(canceled.WaitOne(interval), "Aborted");
Assert.True(ct.IsCancellationRequested, "IsCancellationRequested");
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
// HttpClient re-tries the request because it doesn't know if the request was received.
context = await server.AcceptAsync();
context.Abort();

View File

@ -7,7 +7,7 @@
"xunit": "2.2.0-*"
},
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -6,7 +6,7 @@
"xunit": "2.2.0-*"
},
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",