Пример #1
0
        private void MultiTableSelectTest(TableSelectStatement statement, object[][] expectedValues)
        {
            RowResult result   = statement.Execute();
            int       rowCount = result.FetchAll().Count;

            Assert.Equal(expectedValues.Length, rowCount);
            Assert.Equal(expectedValues.Length, result.Rows.Count);
            for (int i = 0; i < expectedValues.Length; i++)
            {
                for (int j = 0; j < expectedValues[i].Length; j++)
                {
                    Assert.Equal(expectedValues[i][j], result.Rows.ToArray()[i][j]);
                }
            }
        }
Пример #2
0
 protected RowResult ExecuteSelectStatement(TableSelectStatement stmt)
 {
     return(stmt.Execute());
 }