public void ReadsMinificationFromXmlNodeSetsMinifyOutputTrue()
        {
            var element = GetTestnode("true");
            var interpreter = new XmlConfigurationInterpreter();

            var output = interpreter.Process(element);

            Assert.IsTrue(output.MinifyOutput);
        }
        public void MinifyCssAttributeCanBeNull_SetsMinifyOutputFalse()
        {
            XmlNode testnode = GetTestnodeWithoutAttribute();
            var interpreter = new XmlConfigurationInterpreter();

            var output = interpreter.Process(testnode);

            Assert.IsFalse(output.MinifyOutput);
        }
        public object Create(object parent, object configContext, XmlNode section)
        {
            var configuration = new DotlessConfiguration();    //Default
            try
            {
                var interpreter = new XmlConfigurationInterpreter();
                configuration = interpreter.Process(section);
            }
            catch (Exception)
            {
                //TODO: Log the errormessage to somewhere
            }

            return configuration;
        }