System.Net.Tests.ServicePointManagerTest.FindServicePoint_ReturnedServicePointMatchesExpectedValues C# (CSharp) Method

FindServicePoint_ReturnedServicePointMatchesExpectedValues() private method

        public static void FindServicePoint_ReturnedServicePointMatchesExpectedValues()
        {
            string address = "http://" + Guid.NewGuid().ToString("N");

            DateTime start = DateTime.Now;
            ServicePoint sp = ServicePointManager.FindServicePoint(address, null);

            Assert.InRange(sp.IdleSince, start, DateTime.MaxValue);
            Assert.Equal(new Uri(address), sp.Address);
            Assert.Null(sp.BindIPEndPointDelegate);
            Assert.Null(sp.Certificate);
            Assert.Null(sp.ClientCertificate);
            Assert.Equal(-1, sp.ConnectionLeaseTimeout);
            Assert.Equal("http", sp.ConnectionName);
            Assert.Equal(0, sp.CurrentConnections);
            Assert.Equal(true, sp.Expect100Continue);
            Assert.Equal(100000, sp.MaxIdleTime);
            Assert.Equal(new Version(1, 1), sp.ProtocolVersion);
            Assert.Equal(-1, sp.ReceiveBufferSize);
            Assert.True(sp.SupportsPipelining, "SupportsPipelining");
            Assert.True(sp.UseNagleAlgorithm, "UseNagleAlgorithm");
        }