예제 #1
0
        public void MySQLDatabaseHandlerCloseConnectionTest()
        {
            MySQLDatabaseHandler handler = new MySQLDatabaseHandler(server, database, username, password);
            DbConnection         con     = handler.OpenConnection();
            bool sucess = handler.CloseConnection();

            Assert.IsTrue(sucess);
        }
예제 #2
0
        public void MySQLDatabaseHandlerOpenConnectionTest()
        {
            MySQLDatabaseHandler handler = new MySQLDatabaseHandler(server, database, username, password);
            DbConnection         con     = handler.OpenConnection();

            Assert.IsNotNull(con);
            handler.CloseConnection();
        }