diff options
author | Rolf Bjarne Kvinge <rolf@xamarin.com> | 2016-07-01 14:12:19 +0300 |
---|---|---|
committer | Rolf Bjarne Kvinge <rolf@xamarin.com> | 2016-07-26 14:20:51 +0300 |
commit | 51de6e83eb3e3c64153de6e592d773e0bd49c0c8 (patch) | |
tree | c9820b39dfd84c467660065a605d5d2421b5703e /mcs/class/System.Net.Http | |
parent | ce8e905118928c851652917d7137ade2643a025a (diff) |
[System*] Add category for tests that use API that require BSD sockets.
We don't have access to BSD sockets on watchOS, so that API
doesn't work.
With this category we'll be able to exclude these tests.
Diffstat (limited to 'mcs/class/System.Net.Http')
-rw-r--r-- | mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientTest.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientTest.cs b/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientTest.cs index aa678a036e6..f1af864e214 100644 --- a/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientTest.cs +++ b/mcs/class/System.Net.Http/Test/System.Net.Http/HttpClientTest.cs @@ -321,6 +321,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Proxy_Disabled () { var pp = WebRequest.DefaultWebProxy; @@ -397,6 +398,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Complete_Default () { bool? failed = null; @@ -441,6 +443,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Complete_Version_1_0 () { bool? failed = null; @@ -488,6 +491,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Complete_ClientHandlerSettings () { bool? failed = null; @@ -552,6 +556,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Complete_CustomHeaders () { bool? failed = null; @@ -616,6 +621,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Complete_CustomHeaders_SpecialSeparators () { bool? failed = null; @@ -650,6 +656,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Complete_CustomHeaders_Host () { bool? failed = null; @@ -683,6 +690,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Transfer_Encoding_Chunked () { bool? failed = null; @@ -712,6 +720,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Transfer_Encoding_Custom () { bool? failed = null; @@ -740,6 +749,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Complete_Content () { var listener = CreateListener (l => { @@ -767,6 +777,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Complete_Content_MaxResponseContentBufferSize () { var listener = CreateListener (l => { @@ -789,6 +800,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Complete_Content_MaxResponseContentBufferSize_Error () { var listener = CreateListener (l => { @@ -815,6 +827,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Complete_NoContent () { foreach (var method in new HttpMethod[] { HttpMethod.Post, HttpMethod.Put, HttpMethod.Delete }) { @@ -847,6 +860,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Complete_Error () { var listener = CreateListener (l => { @@ -867,6 +881,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Content_Get () { var listener = CreateListener (l => { @@ -886,6 +901,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Content_BomEncoding () { var listener = CreateListener (l => { @@ -910,6 +926,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Content_Put () { bool passed = false; @@ -935,6 +952,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void Send_Content_Put_CustomStream () { bool passed = false; @@ -1037,6 +1055,7 @@ namespace MonoTests.System.Net.Http [Test] [Category ("MobileNotWorking")] // Missing encoding + [Category ("RequiresBSDSockets")] public void GetString_Many () { Action<HttpListenerContext> context = (HttpListenerContext l) => { @@ -1066,6 +1085,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void GetByteArray_ServerError () { var listener = CreateListener (l => { @@ -1088,6 +1108,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void DisallowAutoRedirect () { var listener = CreateListener (l => { @@ -1116,6 +1137,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] public void RequestUriAfterRedirect () { var listener = CreateListener (l => { @@ -1156,6 +1178,7 @@ namespace MonoTests.System.Net.Http } [Test] + [Category ("RequiresBSDSockets")] /* * Properties may only be modified before sending the first request. */ |