public static void MyClassCleanup() { try { var db = new NLORMMySqlDb(connectionString); db.DropTable<TestClass>(); db.DropTable<TestClass2>(); db.Close(); } catch { } }
public static void MyClassInitialize(TestContext testContext) { try { var db = new NLORMMySqlDb(connectionString); db.DropTable<TestClass>(); db.DropTable<TestClass2>(); db.Close(); } catch { } }
public void TestDropTableWithoutAttr() { try { var db = new NLORMMySqlDb(connectionString); db.DropTable<TestClass2>(); db.Close(); } catch (MySqlException ex) { Assert.IsTrue(ex is MySqlException); } }