Skip to content

Commit 9106003

Browse files
committed
Fix WinHttphandlerTest
1 parent 37edd2e commit 9106003

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/libraries/System.Net.Http.WinHttpHandler/tests/UnitTests/WinHttpHandlerTest.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void Ctor_ExpectedDefaultPropertyValues()
4545
Assert.Equal(CookieUsePolicy.UseInternalCookieStoreOnly, handler.CookieUsePolicy);
4646
Assert.Null(handler.CookieContainer);
4747
Assert.Null(handler.ServerCertificateValidationCallback);
48-
Assert.True(handler.CheckCertificateRevocationList);
48+
Assert.False(handler.CheckCertificateRevocationList);
4949
Assert.Equal(ClientCertificateOption.Manual, handler.ClientCertificateOption);
5050
X509Certificate2Collection certs = handler.ClientCertificates;
5151
Assert.True(certs.Count == 0);
@@ -130,7 +130,8 @@ public void TcpKeepalive_WhenEnabled_ForwardsCorrectNativeOptions()
130130
{
131131
using var handler = new WinHttpHandler();
132132

133-
SendRequestHelper.Send(handler, () => {
133+
SendRequestHelper.Send(handler, () =>
134+
{
134135
handler.TcpKeepAliveEnabled = true;
135136
handler.TcpKeepAliveTime = TimeSpan.FromMinutes(13);
136137
handler.TcpKeepAliveInterval = TimeSpan.FromSeconds(42);
@@ -148,7 +149,8 @@ public void TcpKeepalive_InfiniteTimeSpan_TranslatesToUInt32MaxValue()
148149
{
149150
using var handler = new WinHttpHandler();
150151

151-
SendRequestHelper.Send(handler, () => {
152+
SendRequestHelper.Send(handler, () =>
153+
{
152154
handler.TcpKeepAliveEnabled = true;
153155
handler.TcpKeepAliveTime = Timeout.InfiniteTimeSpan;
154156
handler.TcpKeepAliveInterval = Timeout.InfiniteTimeSpan;
@@ -312,7 +314,8 @@ public void CookieUsePolicy_SetUseSpecifiedCookieContainerAndContainer_ExpectedW
312314

313315
SendRequestHelper.Send(
314316
handler,
315-
delegate {
317+
delegate
318+
{
316319
handler.CookieUsePolicy = CookieUsePolicy.UseSpecifiedCookieContainer;
317320
handler.CookieContainer = new CookieContainer();
318321
});

0 commit comments

Comments
 (0)