@@ -1069,6 +1069,7 @@ public async Task TestHeadersLocalPatch(bool useDefault)
10691069 Assert . IsNotNull ( responsePerson ) ;
10701070 }
10711071
1072+ #if ! NET45
10721073 [ TestMethod ]
10731074 public async Task TestTimeoutPatch ( )
10741075 {
@@ -1087,11 +1088,10 @@ public async Task TestTimeoutPatch()
10871088 requestHeaders : "Test" . ToHeadersCollection ( "Test" )
10881089 ) ) ;
10891090
1090- #if ! NET45
10911091 _logger . VerifyLog < Client , OperationCanceledException > ( ( state , t )
10921092 => state . CheckValue ( "{OriginalFormat}" , Messages . ErrorMessageOperationCancelled ) , LogLevel . Error , 1 ) ;
1093- #endif
10941093 }
1094+ #endif
10951095
10961096 [ TestMethod ]
10971097 public async Task TestTimeoutPatch2 ( )
@@ -1533,6 +1533,7 @@ public void TestHeadersCollectionKeyValueConstruction()
15331533 Assert . AreEqual ( Key , keyValuePair . Key ) ;
15341534 }
15351535
1536+ #if ! NET45
15361537 [ TestMethod ]
15371538 public void TestDisposeDisposesHttpClient ( )
15381539 {
@@ -1546,6 +1547,7 @@ public void TestDisposeDisposesHttpClient()
15461547 Assert . AreEqual ( true , isHttpClientDisposed ) ;
15471548 }
15481549
1550+
15491551 [ TestMethod ]
15501552 public void TestDisposeDoesntHappenTwice ( )
15511553 {
@@ -1559,6 +1561,7 @@ public void TestDisposeDoesntHappenTwice()
15591561#pragma warning restore CS8605 // Unboxing a possibly null value.
15601562 Assert . AreEqual ( false , isHttpClientDisposed ) ;
15611563 }
1564+ #endif
15621565
15631566 [ TestMethod ]
15641567 public void TestDefaultThrowExceptionOnFailure ( )
0 commit comments