public void CompareTables(ReactiveTable expectedTable, ReactiveTable table) { Assert.AreEqual(expectedTable.RowCount, table.RowCount); Assert.AreEqual(expectedTable.Columns.Count, table.Columns.Count); foreach (var column in expectedTable.Columns) { IReactiveColumn col; Assert.IsTrue(table.GetColumnByName(column.ColumnId, out col)); for (var i = 0; i < expectedTable.RowCount; i++) { // Cheating a little by relying on the fact that i know the row id starts at 0. Assert.AreEqual(expectedTable.GetValue(column.ColumnId, i), table.GetValue(column.ColumnId, i), $"For column {column.ColumnId}"); } } }