Ejemplo n.º 1
0
        public void WhenWritingOneBorder_ThenOutputIsEmpty()
        {
            using (MemoryStream ms = new MemoryStream())
            {
                TableTextStreamWriter tableTextStreamWriter = new TableTextStreamWriter(ms);

                BorderX borderX = new BorderX();
                tableTextStreamWriter.EnqueueHorizontalBorder(borderX);
                tableTextStreamWriter.EndTable();

                string expected = string.Empty;
                AssertOutput(ms, expected);
            }
        }
Ejemplo n.º 2
0
        public void WhenWritingOneBorderAndOneRow_ThenOutputContainsBorderRowBorder()
        {
            using (MemoryStream ms = new MemoryStream())
            {
                TableTextStreamWriter tableTextStreamWriter = new TableTextStreamWriter(ms);

                BorderX borderX = new BorderX();
                tableTextStreamWriter.EnqueueHorizontalBorder(borderX);

                RowX rowX = new RowX();
                tableTextStreamWriter.WriteRow(rowX, borderX);

                tableTextStreamWriter.EndTable();

                string expected = string.Empty;
                AssertOutput(ms, expected);
            }
        }
Ejemplo n.º 3
0
 public void EnqueueHorizontalBorder(BorderX borderX)
 {
     this.borderX = borderX;
 }