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;
        }
コード例 #2
0
 public override void ChangeDatabase(string databaseName)
 {
     _connection.ChangeDatabase(databaseName);
 }