public static void GetAllCells___Should_return_all_rows_in_order___When_all_kinds_of_rows_present() { // Arrange var tableRowsResult = TreeTableExtensionsTest.GetTableRowsForTesting(); var expected = tableRowsResult.Item2; // Act var actual = tableRowsResult.Item1.GetAllCells(); // Assert actual.AsTest().Must().BeEqualTo(expected); }
public static void GetAllRowsInOrder___Should_return_all_rows_in_order___When_only_footer_rows_present() { // Arrange var tableRows = new TableRows(footerRows: TreeTableExtensionsTest.GetFooterRowsForTesting().Item1); var expectedIds = Enumerable.Range(15, 3).Select(_ => _.ToString()).ToList(); // Act var actual = tableRows.GetAllRowsInOrder(); // Assert var actualIds = actual.Select(_ => _.Id).ToList(); actualIds.AsTest().Must().BeEqualTo(expectedIds); }