public void CreateDatabase(string context) { AccessTools.CreateDatabase("TestDatabase", deleteIfExists: true); Assert.IsTrue(File.Exists("TestDatabase.mdb")); using (var db = new DataConnection(AccessTools.GetDataProvider(), "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=TestDatabase.mdb;Locale Identifier=1033;Jet OLEDB:Engine Type=5;Persist Security Info=True")) { db.CreateTable <SqlCeTests.CreateTableTest>(); db.DropTable <SqlCeTests.CreateTableTest>(); } AccessTools.DropDatabase("TestDatabase"); Assert.IsFalse(File.Exists("TestDatabase.mdb")); }
public void CreateDatabase(string context) { AccessTools.CreateDatabase("TestDatabase", deleteIfExists: true); Assert.IsTrue(File.Exists("TestDatabase.mdb")); AccessTools.DropDatabase("TestDatabase"); }