예제 #1
0
        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);
        }
예제 #2
0
        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);
        }