public void Constructor_XElementHasUseIIS_UseIISPropertyPopulated()
        {
            var properties = new WebProjectProperties()
            {
                UseIIS = true
            };

            properties = new WebProjectProperties(properties.ToXElement());

            Assert.IsTrue(properties.UseIIS);
        }
        public void Constructor_XElementHasUseCustomServer_UseCustomServerPropertyPopulated()
        {
            var properties = new WebProjectProperties()
            {
                UseCustomServer = true
            };

            properties = new WebProjectProperties(properties.ToXElement());

            Assert.IsTrue(properties.UseCustomServer);
        }
        public void Constructor_XElementHasSaveServerSettingsInUserFile_SaveServerSettingsInUserFilePropertyPopulated()
        {
            var properties = new WebProjectProperties()
            {
                SaveServerSettingsInUserFile = true
            };

            properties = new WebProjectProperties(properties.ToXElement());

            Assert.IsTrue(properties.SaveServerSettingsInUserFile);
        }
        public void Constructor_XElementHasNTLMAuthentication_NTLMAuthenticationPropertyPopulated()
        {
            var properties = new WebProjectProperties()
            {
                NTLMAuthentication = true
            };

            properties = new WebProjectProperties(properties.ToXElement());

            Assert.IsTrue(properties.NTLMAuthentication);
        }
        public void Constructor_XElementHasDevelopmentServerVPath_DevelopmentServerVPathPropertyPopulated()
        {
            var properties = new WebProjectProperties()
            {
                DevelopmentServerVPath = "Test"
            };

            properties = new WebProjectProperties(properties.ToXElement());

            Assert.AreEqual("Test", properties.DevelopmentServerVPath);
        }
        public void Constructor_XElementHasAutoAssignPort_AutoAssignPortPropertyPopulated()
        {
            var properties = new WebProjectProperties()
            {
                AutoAssignPort = true
            };

            properties = new WebProjectProperties(properties.ToXElement());

            Assert.IsTrue(properties.AutoAssignPort);
        }
        public void Constructor_XElementHasCustomServerUrl_CustomServerUrlPropertyPopulated()
        {
            var properties = new WebProjectProperties()
            {
                CustomServerUrl = "/Test"
            };

            properties = new WebProjectProperties(properties.ToXElement());

            Assert.AreEqual("/Test", properties.CustomServerUrl);
        }