public void ShouldNotTruncateWhenEnoughSpaceAvailable(string content, int length) { // Arrange var table = new Logging.Table(new int[] { length }); // Act var row = table.GetRow(columns: new string[] { content }).Replace('\t', ' ').Trim(); // Assert Assert.DoesNotContain("...", row); }
public void ColumnWidthLessThanContentLenght(string content, int length) { // Arrange var table = new Logging.Table(new int[] { length }); // Act var row = table.GetRow(columns: new string[] { content }).Replace('\t', ' ').Trim(); // Assert Assert.Contains("...", row); Assert.Equal(row.Length, length); }