Updating test TFMs for custom test discovery

This commit is contained in:
John Luo 2016-02-18 16:00:59 -08:00
parent e14b86ebe0
commit 99ccae64eb
4 changed files with 15 additions and 15 deletions

View File

@ -15,7 +15,7 @@
},
"imports": "portable-net451+win8"
},
"dnx451": {
"net451": {
"dependencies": {
"xunit.runner.console": "2.1.0"
}

View File

@ -51,7 +51,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
try
{
#if DNX451
#if NET451
var handler = new HttpClientHandler();
ServicePointManager.ServerCertificateValidationCallback += validationCallback;
#else
@ -79,7 +79,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
}
finally
{
#if DNX451
#if NET451
ServicePointManager.ServerCertificateValidationCallback -= validationCallback;
#endif
}
@ -97,7 +97,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
try
{
#if DNX451
#if NET451
var handler = new HttpClientHandler();
ServicePointManager.ServerCertificateValidationCallback += validationCallback;
#else
@ -126,7 +126,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
}
finally
{
#if DNX451
#if NET451
ServicePointManager.ServerCertificateValidationCallback -= validationCallback;
#endif
}
@ -144,7 +144,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
try
{
#if DNX451
#if NET451
var handler = new HttpClientHandler();
ServicePointManager.ServerCertificateValidationCallback += validationCallback;
#else
@ -180,7 +180,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
}
finally
{
#if DNX451
#if NET451
ServicePointManager.ServerCertificateValidationCallback -= validationCallback;
#endif
}
@ -198,7 +198,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
try
{
#if DNX451
#if NET451
ServicePointManager.ServerCertificateValidationCallback += validationCallback;
#endif
@ -246,7 +246,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
}
finally
{
#if DNX451
#if NET451
ServicePointManager.ServerCertificateValidationCallback -= validationCallback;
#endif
}
@ -264,7 +264,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
try
{
#if DNX451
#if NET451
var handler = new HttpClientHandler();
ServicePointManager.ServerCertificateValidationCallback += validationCallback;
#else
@ -296,7 +296,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
}
finally
{
#if DNX451
#if NET451
ServicePointManager.ServerCertificateValidationCallback -= validationCallback;
#endif
}

View File

@ -129,7 +129,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
var t = Task.Run(async () =>
{
var socket = TestConnection.CreateConnectedLoopbackSocket(port);
#if DNX451
#if NET451
await Task.Factory.FromAsync(
socket.BeginSend,
socket.EndSend,
@ -204,7 +204,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
var t = Task.Run(async () =>
{
var socket = TestConnection.CreateConnectedLoopbackSocket(port);
#if DNX451
#if NET451
await Task.Factory.FromAsync(
socket.BeginSend,
socket.EndSend,
@ -220,7 +220,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests
var buffer = new ArraySegment<byte>(new byte[2048]);
while (true)
{
#if DNX451
#if NET451
var count = await Task.Factory.FromAsync(
socket.BeginReceive,
socket.EndReceive,

View File

@ -21,7 +21,7 @@
},
"imports": "portable-net451+win8"
},
"dnx451": {
"net451": {
"dependencies": {
"xunit.runner.console": "2.1.0"
}