Beispiel #1
0
        internal void Render_Multiple_Text()
        {
            // Arrange
            var renderer = new PageRenderer();

            renderer.AppendText(PageContentRowFormattingStyle.None, "content line 1");
            renderer.AppendText(PageContentRowFormattingStyle.None, "content line 2");

            // Act
            var contentText = renderer.ToString();

            // Assert
            var lines = contentText.ToLines();

            Assert.Equal(2, lines.Length);

            Assert.Equal("content line 1", lines[0]);
            Assert.Equal("content line 2", lines[1]);
        }
Beispiel #2
0
        internal void Render_Text_Indent()
        {
            // Arrange
            var renderer = new PageRenderer();

            renderer.AppendText(PageContentRowFormattingStyle.Indent, "content line");

            // Act
            var contentText = renderer.ToString();

            // Assert
            Assert.Equal("  content line", contentText.TrimEnd());
        }