Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }