コード例 #1
0
        public void TestSettingProxyPropertiesToNullShouldTurnOffProxy()
        {
            config["proxyHost"] = null;
            config["proxyPort"] = null;

            Assert.IsFalse(objectUnderTest.IsProxyOn());
        }
コード例 #2
0
        public void TestSettingProxyPropertiesToNullShouldTurnOffProxy()
        {
            var config = new Dictionary <string, string> {
                { "proxyHost", null }, { "proxyPort", null }
            };

            Assert.IsFalse(_objectUnderTest.IsProxyOn(config));
        }