Exemple #1
0
        public static void GetAllRowsInOrder___Should_return_all_rows_in_order___When_only_header_rows_present()
        {
            // Arrange
            var tableRows = new TableRows(headerRows: TreeTableExtensionsTest.GetHeaderRowsForTesting().Item1);

            var expectedIds = Enumerable.Range(1, 3).Select(_ => _.ToString()).ToList();

            // Act
            var actual = tableRows.GetAllRowsInOrder();

            // Assert
            var actualIds = actual.Select(_ => _.Id).ToList();

            actualIds.AsTest().Must().BeEqualTo(expectedIds);
        }
Exemple #2
0
        public static void GetAllCells___Should_return_all_rows_in_order___When_only_header_rows_present()
        {
            // Arrange
            var headerRowsResult = TreeTableExtensionsTest.GetHeaderRowsForTesting();

            var tableRows = new TableRows(headerRows: headerRowsResult.Item1);

            var expected = headerRowsResult.Item2;

            // Act
            var actual = tableRows.GetAllCells();

            // Assert
            actual.AsTest().Must().BeEqualTo(expected);
        }