public void MacroExpansionGrouped() { XslMacro xm = new XslMacro(getAttributeSet(), "categorisedArticles.xsl"); IList<ArticleDto> articles = getArticles(); string[] parmsVals = new string[0]; string output = xm.Expand(parmsVals, parmsVals, articles[0], articles); Assert.AreEqual("Electronics\r\n Xbox Controller Repair\r\nWoodwork\r\n Desk\r\n", output); }
public void MacroExpansionFlat() { XslMacro xm = new XslMacro(getAttributeSet(), "flatArticlesList.xsl"); IList<ArticleDto> articles = getArticles(); string[] parsVals = new string[0]; string output = xm.Expand(parsVals, parsVals, articles[0], articles); Assert.AreEqual("Desk\r\nXbox Controller Repair\r\n", output); }
public void MacroExpansionFlat() { XslMacro xm = new XslMacro(getAttributeSet(), "flatArticlesList.xsl"); IList <ArticleDto> articles = getArticles(); string[] parsVals = new string[0]; string output = xm.Expand(parsVals, parsVals, articles[0], articles); Assert.AreEqual("Desk\r\nXbox Controller Repair\r\n", output); }
public void MacroExpansionGrouped() { XslMacro xm = new XslMacro(getAttributeSet(), "categorisedArticles.xsl"); IList <ArticleDto> articles = getArticles(); string[] parmsVals = new string[0]; string output = xm.Expand(parmsVals, parmsVals, articles[0], articles); Assert.AreEqual("Electronics\r\n Xbox Controller Repair\r\nWoodwork\r\n Desk\r\n", output); }