Esempio 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);
            }
        }
Esempio 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);
            }
        }