@@ -156,7 +156,7 @@ public void Ctor_ExpectedDefaultPropertyValues_NotUapPlatform()
156156 Assert . False ( handler . PreAuthenticate ) ;
157157 Assert . True ( handler . SupportsProxy ) ;
158158 Assert . True ( handler . SupportsRedirectConfiguration ) ;
159-
159+
160160 // Changes from .NET Framework (Desktop).
161161 if ( ! PlatformDetection . IsFullFramework )
162162 {
@@ -329,7 +329,7 @@ public async Task SendAsync_GetWithInvalidHostHeader_ThrowsException()
329329 }
330330 }
331331
332- [ ActiveIssue ( 22158 , TargetFrameworkMonikers . Uap ) ]
332+ [ ActiveIssue ( 22158 , TargetFrameworkMonikers . Uap ) ]
333333 [ OuterLoop ] // TODO: Issue #11345
334334 [ Fact ]
335335 public async Task GetAsync_IPv6LinkLocalAddressUri_Success ( )
@@ -599,7 +599,7 @@ await LoopbackServer.CreateServerAsync(async (origServer, origUrl) =>
599599 "\r \n " ) ;
600600 await TestHelper . WhenAllCompletedOrAnyFailed ( getResponseTask , serverTask ) ;
601601
602- List < string > receivedRequest = await serverTask ;
602+ List < string > receivedRequest = await serverTask ;
603603 string [ ] statusLineParts = receivedRequest [ 0 ] . Split ( ' ' ) ;
604604
605605 using ( HttpResponseMessage response = await getResponseTask )
@@ -1392,7 +1392,7 @@ public async Task GetAsync_StatusCodeOutOfRange_ExpectedException(int statusCode
13921392 // UAP platform allows this status code due to historical reasons.
13931393 return ;
13941394 }
1395-
1395+
13961396 await LoopbackServer . CreateServerAsync ( async ( server , url ) =>
13971397 {
13981398 using ( HttpClient client = CreateHttpClient ( ) )
@@ -2158,7 +2158,7 @@ await response.Content.ReadAsStringAsync(),
21582158 [ SkipOnTargetFramework ( TargetFrameworkMonikers . Uap , "UAP does not support custom proxies." ) ]
21592159 [ OuterLoop ] // TODO: Issue #11345
21602160 [ Fact ]
2161- public void Proxy_HaveNoCredsAndUseAuthenticatedCustomProxy_ProxyAuthenticationRequiredStatusCode ( )
2161+ public async Task Proxy_HaveNoCredsAndUseAuthenticatedCustomProxy_ProxyAuthenticationRequiredStatusCode ( )
21622162 {
21632163 int port ;
21642164 Task < LoopbackGetRequestHttpProxy . ProxyResult > proxyTask = LoopbackGetRequestHttpProxy . StartAsync (
@@ -2172,7 +2172,7 @@ public void Proxy_HaveNoCredsAndUseAuthenticatedCustomProxy_ProxyAuthenticationR
21722172 using ( var client = new HttpClient ( handler ) )
21732173 {
21742174 Task < HttpResponseMessage > responseTask = client . GetAsync ( Configuration . Http . RemoteEchoServer ) ;
2175- Task . WaitAll ( proxyTask , responseTask ) ;
2175+ await ( new Task [ ] { proxyTask , responseTask } ) . WhenAllOrAnyFailed ( ) ;
21762176 using ( responseTask . Result )
21772177 {
21782178 Assert . Equal ( HttpStatusCode . ProxyAuthenticationRequired , responseTask . Result . StatusCode ) ;
0 commit comments