예제 #1
0
        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"));
        }
예제 #2
0
 public string GetTableName(int tableIndex)
 {
     return(_source.GetTableName(tableIndex));
 }