public void GetSchema_Contains_Proper_Tables() { using (IDisposableDbCommandBuilder builder = GetDbCommandBuilder()) { builder.BuildCommands(GetXmlSchemaFilename()); DataSet schema = builder.GetSchema(); IList <string> schemaTables = new List <string>(); foreach (DataTable dataTable in schema.Tables) { schemaTables.Add(dataTable.TableName); Console.WriteLine("Table '" + dataTable.TableName + "' found in dataset"); } Assert.AreEqual(EXPECTED_COUNT_OF_COMMANDS, schema.Tables.Count, string.Format("Should be {0} Tables in dataset", EXPECTED_COUNT_OF_COMMANDS)); Assert.That(ExpectedDataSetTableNames, Is.EquivalentTo(schemaTables)); } }
public void _SetUp() { _commandBuilder = GetDbCommandBuilder(); ExecuteSchemaCreationScript(); _commandBuilder.BuildCommands(GetXmlSchemaFilename()); }
public void _SetUp() { _commandBuilder = GetDbCommandBuilder(); ExecuteSchemaCreationScript(); _commandBuilder.BuildCommands(GetXmlSchemaFilename()); }