コード例 #1
0
        public void IsConfigured_UseIISAndUseIISExpressAreBothFalse_ReturnsFalse()
        {
            var properties = new WebProjectProperties()
            {
                UseIISExpress = false, UseIIS = false
            };

            bool configured = properties.IsConfigured();

            Assert.IsFalse(configured);
        }
コード例 #2
0
        public void IsConfigured_UseIISIsTrueAndIISUrlIsNull_ReturnsFalse()
        {
            var properties = new WebProjectProperties
            {
                UseIISExpress = true,
                IISUrl        = null
            };

            bool configured = properties.IsConfigured();

            Assert.IsFalse(configured);
        }
コード例 #3
0
        public void IsConfigured_UseIISExpressIsTrueAndIISUrlIsEmptyString_ReturnsFalse()
        {
            var properties = new WebProjectProperties
            {
                UseIISExpress = true,
                IISUrl        = String.Empty
            };

            bool configured = properties.IsConfigured();

            Assert.IsFalse(configured);
        }
コード例 #4
0
        public void IsConfigured_UseIISExpressIsTrueAndIISUrlIsValidUrl_ReturnsTrue()
        {
            var properties = new WebProjectProperties
            {
                UseIISExpress = true,
                IISUrl        = "http://localhost:8080/"
            };

            bool configured = properties.IsConfigured();

            Assert.IsTrue(configured);
        }