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