コード例 #1
0
 public void TestOpenConnectionInValid()
 {
     var mySqlProvider = new MySqlDatabaseProvider
     {
         ConnectionString = "SERVER=localhost;DATABASE=scduvss;UID=root;PASSWORD=123;"
     };
     Assert.False(mySqlProvider.Open(), "Test MySql Connection Failed");
 }
コード例 #2
0
 public void TestOpenConnectionValid()
 {
     var mySqlProvider = new MySqlDatabaseProvider
     {
         ConnectionString = ValidConnectionString
     };
     Assert.IsTrue(mySqlProvider.Open(), "Test MySql Connection Failed");
 }