Ignore some tests on downlevel
This commit is contained in:
parent
70b2bdba99
commit
e10f64c32f
|
|
@ -26,13 +26,15 @@ using Microsoft.AspNet.FeatureModel;
|
|||
using Microsoft.AspNet.Http;
|
||||
using Microsoft.AspNet.HttpFeature;
|
||||
using Microsoft.AspNet.PipelineCore;
|
||||
using Microsoft.AspNet.Testing.xunit;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.AspNet.Server.WebListener
|
||||
{
|
||||
public class OpaqueUpgradeTests
|
||||
{
|
||||
[Fact]
|
||||
[ConditionalFact]
|
||||
[OSSkipCondition(OperatingSystems.Win7And2008R2)]
|
||||
public async Task OpaqueUpgrade_SupportKeys_Present()
|
||||
{
|
||||
string address;
|
||||
|
|
@ -59,7 +61,8 @@ namespace Microsoft.AspNet.Server.WebListener
|
|||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ConditionalFact]
|
||||
[OSSkipCondition(OperatingSystems.Win7And2008R2)]
|
||||
public async Task OpaqueUpgrade_AfterHeadersSent_Throws()
|
||||
{
|
||||
bool? upgradeThrew = null;
|
||||
|
|
@ -88,7 +91,8 @@ namespace Microsoft.AspNet.Server.WebListener
|
|||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ConditionalFact]
|
||||
[OSSkipCondition(OperatingSystems.Win7And2008R2)]
|
||||
public async Task OpaqueUpgrade_GetUpgrade_Success()
|
||||
{
|
||||
ManualResetEvent waitHandle = new ManualResetEvent(false);
|
||||
|
|
@ -115,7 +119,8 @@ namespace Microsoft.AspNet.Server.WebListener
|
|||
}
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[ConditionalTheory]
|
||||
[OSSkipCondition(OperatingSystems.Win7And2008R2)]
|
||||
// See HTTP_VERB for known verbs
|
||||
[InlineData("UNKNOWN", null)]
|
||||
[InlineData("INVALID", null)]
|
||||
|
|
@ -173,7 +178,8 @@ namespace Microsoft.AspNet.Server.WebListener
|
|||
}
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[ConditionalTheory]
|
||||
[OSSkipCondition(OperatingSystems.Win7And2008R2)]
|
||||
// Http.Sys returns a 411 Length Required if PUT or POST does not specify content-length or chunked.
|
||||
[InlineData("POST", "Content-Length: 10")]
|
||||
[InlineData("POST", "Transfer-Encoding: chunked")]
|
||||
|
|
|
|||
|
|
@ -24,13 +24,15 @@ using Microsoft.AspNet.FeatureModel;
|
|||
using Microsoft.AspNet.Http;
|
||||
using Microsoft.AspNet.HttpFeature;
|
||||
using Microsoft.AspNet.PipelineCore;
|
||||
using Microsoft.AspNet.Testing.xunit;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.AspNet.Server.WebListener
|
||||
{
|
||||
public class WebSocketTests
|
||||
{
|
||||
[Fact]
|
||||
[ConditionalFact]
|
||||
[OSSkipCondition(OperatingSystems.Win7And2008R2)]
|
||||
public async Task WebSocketTests_SupportKeys_Present()
|
||||
{
|
||||
string address;
|
||||
|
|
@ -57,7 +59,8 @@ namespace Microsoft.AspNet.Server.WebListener
|
|||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ConditionalFact]
|
||||
[OSSkipCondition(OperatingSystems.Win7And2008R2)]
|
||||
public async Task WebSocketTests_AfterHeadersSent_Throws()
|
||||
{
|
||||
bool? upgradeThrew = null;
|
||||
|
|
@ -86,7 +89,8 @@ namespace Microsoft.AspNet.Server.WebListener
|
|||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ConditionalFact]
|
||||
[OSSkipCondition(OperatingSystems.Win7And2008R2)]
|
||||
public async Task WebSocketAccept_Success()
|
||||
{
|
||||
ManualResetEvent waitHandle = new ManualResetEvent(false);
|
||||
|
|
@ -112,7 +116,8 @@ namespace Microsoft.AspNet.Server.WebListener
|
|||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ConditionalFact]
|
||||
[OSSkipCondition(OperatingSystems.Win7And2008R2)]
|
||||
public async Task WebSocketAccept_SendAndReceive_Success()
|
||||
{
|
||||
byte[] clientBuffer = new byte[] { 0x00, 0x01, 0xFF, 0x00, 0x00 };
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"dependencies": {
|
||||
"Microsoft.AspNet.PipelineCore": "1.0.0-*",
|
||||
"Microsoft.AspNet.Server.WebListener": "1.0.0-*",
|
||||
"Microsoft.AspNet.Testing": "1.0.0-*",
|
||||
"Xunit.KRunner": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue