Ejemplo n.º 1
0
        private int NodeCount()
        {
            _cssProperty = _cssTree.CreateCssProperty(_inputCSS, true);
            _idAllClass  = _stylesXML.CreateIDStyles(_outputStyles, _cssProperty);
            var       inMasterSpread  = new InMasterSpread();
            var       masterPageNames = inMasterSpread.CreateIDMasterSpread(_outputMasterSpreads, _idAllClass, headwordStyles);
            ArrayList test            = new ArrayList();

            _designmapXML.CreateIDDesignMap(_outputPath, 4, masterPageNames, test, new ArrayList(), string.Empty);
            FileNameWithPath = Common.PathCombine(_outputPath, "designmap.xml");
            XmlNodeList result = Common.GetXmlNodeListInDesignNamespace(FileNameWithPath, XPath);

            return(result.Count);
        }
Ejemplo n.º 2
0
        private bool NodeListCompare()
        {
            _cssProperty = _cssTree.CreateCssProperty(_inputCSS, true);
            _idAllClass  = _stylesXML.CreateIDStyles(_outputStyles, _cssProperty);
            var       inMasterSpread  = new InMasterSpread();
            var       masterPageNames = inMasterSpread.CreateIDMasterSpread(_outputMasterSpreads, _idAllClass, headwordStyles);
            ArrayList test            = new ArrayList();

            _designmapXML.CreateIDDesignMap(_outputPath, 4, masterPageNames, test, new ArrayList(), string.Empty);
            FileNameWithPath = Common.PathCombine(_outputPath, "designmap.xml");
            var result1 = Common.GetXmlNodeListInDesignNamespace(FileNameWithPath, XPath);

            foreach (XmlNode fileName in result1)
            {
                if (_expectedList.Contains(fileName))
                {
                    return(false);
                }
            }
            return(true);
        }
Ejemplo n.º 3
0
        public void MasterPageCount()
        {
            ClearFiles();
            _methodName  = "MasterPageCount";
            _cssProperty = _cssTree.CreateCssProperty(_inputCSS1, true);
            _idAllClass  = _stylesXML.CreateIDStyles(_outputStyle, _cssProperty);

            _masterSpreadXML.CreateIDMasterSpread(_outputSpread, _idAllClass, headwordStyles);
            for (int i = 0; i < _listofMasterPages.Count - 1; i++)
            {
                string fileWithPath = Common.PathCombine(_outputSpread, _listofMasterPages[i].ToString());
                bool   result       = File.Exists(fileWithPath);
                Assert.IsTrue(result, fileWithPath + " is missing");
            }
        }