Exemplo n.º 1
0
        private bool CheckStyleandInnerText(XmlNode item, string exp, string inner)
        {
            string key = "style-name";
            string ns  = "text";

            XmlNode y;
            bool    fail = false;

            y = _validate.GetAttibute(item, key, ns);

            if (y.Value != exp)
            {
                fail = true;
            }
            string innerText = _validate.GetReplacedInnerText(item);

            if (!fail && innerText != inner)
            {
                fail = true;
            }
            return(fail);
        }