Ejemplo n.º 1
0
        public void ReadsMinificationFromXmlNodeSetsMinifyOutputTrue()
        {
            var element = GetTestnode("true");
            var interpreter = new XmlConfigurationInterpreter();

            var output = interpreter.Process(element);

            Assert.IsTrue(output.MinifyOutput);
        }
Ejemplo n.º 2
0
        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;
        }