Example #1
0
        public static void GetAllRowsInOrder___Should_return_all_rows_in_order___When_only_data_rows_present()
        {
            // Arrange
            var tableRows = new TableRows(dataRows: TreeTableExtensionsTest.GetDataRowsForTesting().Item1);

            var expectedIds = Enumerable.Range(4, 11).Select(_ => _.ToString()).ToList();

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

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

            actualIds.AsTest().Must().BeEqualTo(expectedIds);
        }
Example #2
0
        public static void GetAllCells___Should_return_all_rows_in_order___When_only_data_rows_present()
        {
            // Arrange
            var dataRowsResult = TreeTableExtensionsTest.GetDataRowsForTesting();

            var tableRows = new TableRows(dataRows: dataRowsResult.Item1);

            var expected = dataRowsResult.Item2;

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

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