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); }
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); }
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"); } }