Example #1
0
        public void AppendHeader()
        {
            StringBuilder expectedHtmlText = new StringBuilder();

            expectedHtmlText.AppendLine("<head>");
            expectedHtmlText.AppendLine("<title>flowName</title>");
            expectedHtmlText.AppendLine("<script>");
            expectedHtmlText.AppendLine("function ShowScreenShots(){");
            expectedHtmlText.AppendLine("images = '';");
            expectedHtmlText.AppendLine("for(i=0;i<arguments.length;i++)images += ('<img src=\"' + arguments[i] + '\"/>');");
            expectedHtmlText.AppendLine("document.getElementById('screenShots').innerHTML = images;}");
            expectedHtmlText.AppendLine("</script>");

            expectedHtmlText.AppendLine("</head>");
            StringBuilder builder = new StringBuilder();

            HtmlGenerator.AppendHeader(subFlows.FlowName, builder);
            Assert.AreEqual(expectedHtmlText.ToString(), builder.ToString());
        }