public void TestChangeDatabase() { string expectedDatabase = "master"; connection.Open(); connection.ChangeDatabase(expectedDatabase); string database = connection.Database; connection.Close(); Assert.AreEqual(expectedDatabase, database, "Unexpected database"); connection.ConnectionString = TestSqlSupport.SqlDatabaseConnectionString; }
public override void ChangeDatabase(string databaseName) { _connection.ChangeDatabase(databaseName); }