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); }
protected void SetUp() { _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/InDesignConvert/TestFiles"); _inputCSS1 = Common.PathCombine(_testFolderPath, "input/MasterSpread.css"); _stylesXML = new InStyles(); _masterSpreadXML = new InMasterSpread(); _idAllClass = new Dictionary <string, Dictionary <string, string> >(); _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/InDesignConvert/TestFiles"); ClassProperty = _expected; _outputPath = Common.PathCombine(_testFolderPath, "output"); _outputSpread = Common.PathCombine(_outputPath, "MasterSpreads"); _outputStyle = Common.PathCombine(_outputPath, "Resources"); _outputStory = Common.PathCombine(_outputPath, "Stories"); _cssProperty = new Dictionary <string, Dictionary <string, string> >(); _cssTree = new CssTree(); _listofMasterPages = new ArrayList { "MasterSpread_First.xml", "MasterSpread_All.xml", "MasterSpread_Left.xml", "MasterSpread_Right.xml" }; }