static void AssertConnectTimeout(DefaultConnection connection) { HttpClient httpClient = (HttpClient)connection.GetPrivateField("_httpClient"); Assert.AreEqual(httpClient.Timeout, SOCKET_TIMEOUT); }