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); } }
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); } }
public void EnqueueHorizontalBorder(BorderX borderX) { this.borderX = borderX; }