public void SetParameterSiteId()
        {
            const string value = @"Foo";
            var parameters = new ConfigFileParameters { SiteId = value };

            var expected = string.Format(@" /siteid:""{0}""", value);

            parameters.ToString().Should().Be(expected);
        }
        public void SetParameterConfigFile()
        {
            const string value = @"C:\MyPath\applicationhosts.config";
            var parameters = new ConfigFileParameters { ConfigFile = value };

            var expected = string.Format(@" /config:""{0}""", value);

            parameters.ToString().Should().Be(expected);
        }
Esempio n. 3
0
        public void SetParameterSiteName()
        {
            const string value      = @"My Site Name";
            var          parameters = new ConfigFileParameters {
                SiteName = value
            };

            var expected = string.Format(@" /site:""{0}""", value);

            parameters.ToString().Should().Be(expected);
        }
Esempio n. 4
0
        public void SetParameterConfigFile()
        {
            const string value      = @"C:\MyPath\applicationhosts.config";
            var          parameters = new ConfigFileParameters {
                ConfigFile = value
            };

            var expected = string.Format(@" /config:""{0}""", value);

            parameters.ToString().Should().Be(expected);
        }
Esempio n. 5
0
        public void SetParameterTraceLevel(TraceLevel traceLevel)
        {
            var configFileParameters = new ConfigFileParameters {
                TraceLevel = traceLevel
            };
            var pathParameters = new PathParameters {
                TraceLevel = traceLevel
            };

            var expected = " /trace:" + traceLevel.ToString().ToLower();

            configFileParameters.ToString().Should().Be(expected);
            pathParameters.ToString().Should().Be(expected);
        }
Esempio n. 6
0
        public void SetParameterSystray(bool value)
        {
            var configFileParameters = new ConfigFileParameters {
                Systray = value
            };
            var pathParameters = new PathParameters {
                Systray = value
            };

            var expected = " /systray:" + value.ToString().ToLower();

            configFileParameters.ToString().Should().Be(expected);
            pathParameters.ToString().Should().Be(expected);
        }
Esempio n. 7
0
        public void DefaultConfigFileParametersShouldBeEmpty()
        {
            var parameters = new ConfigFileParameters();

            parameters.ToString().Should().Be(string.Empty);
        }
        public void SetParameterSystray(bool value)
        {
            var configFileParameters = new ConfigFileParameters { Systray = value };
            var pathParameters = new PathParameters { Systray = value };

            var expected = " /systray:" + value.ToString().ToLower();

            configFileParameters.ToString().Should().Be(expected);
            pathParameters.ToString().Should().Be(expected);
        }
        public void DefaultConfigFileParametersShouldBeEmpty()
        {
            var parameters = new ConfigFileParameters();

            parameters.ToString().Should().Be(string.Empty);
        }
        public void SetParameterTraceLevel(TraceLevel traceLevel)
        {
            var configFileParameters = new ConfigFileParameters { TraceLevel = traceLevel };
            var pathParameters = new PathParameters { TraceLevel = traceLevel };

            var expected = " /trace:" + traceLevel.ToString().ToLower();

            configFileParameters.ToString().Should().Be(expected);
            pathParameters.ToString().Should().Be(expected);
        }