public void DataSetSource_table_methods_works() { DataSet ds = GetDataSet(); DataSetSource dss = new DataSetSource(ds); int[] tables = dss.GetTables().ToArray(); Assert.AreEqual(1, tables.Length); Assert.AreEqual("testtable", dss.GetTableName(tables[0])); Assert.AreEqual(tables[0], dss.GetTableIndex("testtable")); }
public string GetTableName(int tableIndex) { return(_source.GetTableName(tableIndex)); }