Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }