Пример #1
0
        public void LetterSpacing_Node()
        {
            const string file = "EMTest3";
            _projInfo.ProjectInputType = "Dictionary";
            string styleOutput = GetStyleOutput(file);

            _validate = new ValidateXMLFile(_projInfo.TempOutputFolder);
            _validate.ClassName = "entry_none";
            string inner = "Class A <text:span text:style-name=\"sense_entry_none\" xmlns:text=\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\">Class B </text:span>";
            bool returnValue = _validate.ValidateNodeInnerXmlSubNode(inner);
            Assert.IsTrue(returnValue);
        }
Пример #2
0
        public void EMTest1_Node()
        {
            const string file = "EMTest1";
            _projInfo.ProjectInputType = "Dictionary";
            string styleOutput = GetStyleOutput(file);

            _validate = new ValidateXMLFile(_projInfo.TempOutputFolder);
            _validate.ClassName = "letData_body";
            string inner = "letdata <text:span text:style-name=\"slotname_letData_body\" xmlns:text=\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\">slotname </text:span><text:span text:style-name=\"name_letData_body\" xmlns:text=\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\">nameclass </text:span>";
            bool returnValue = _validate.ValidateNodeInnerXmlSubNode(inner);
            Assert.IsTrue(returnValue);
        }