BloomTests.WebLibraryIntegration.ProxyManagerTests.BothEnvironmentVariables_UsesLowercaseVariable C# (CSharp) Method

BothEnvironmentVariables_UsesLowercaseVariable() private method

private BothEnvironmentVariables_UsesLowercaseVariable ( ) : void
return void
        public void BothEnvironmentVariables_UsesLowercaseVariable()
        {
            Environment.SetEnvironmentVariable("http_proxy", "http://example1.com");
            Environment.SetEnvironmentVariable("HTTP_PROXY", "http://example2.com");

            var proxy = new ProxyManager();

            Assert.That(proxy.Hostname, Is.EqualTo("example1.com"));
            Assert.That(proxy.Port, Is.EqualTo(80));
            Assert.That(proxy.Username, Is.Null);
            Assert.That(proxy.Password, Is.Null);
        }