public void MySqlConnectionConnectWrongUser() { MySqlConnector mySql = new MySqlConnector(Host, Dbname, "Testuser", Passwd); mySql.Initialize(); Assert.IsFalse(mySql.Connect()); }
public void MySqlConnectionDisconnectWithoutConnect() { MySqlConnector mySql = new MySqlConnector(Host, Dbname, Username, Passwd); mySql.Initialize(); Assert.IsTrue(mySql.Disconnect()); }
public void MySqlConnectionConnectWrongHost() { MySqlConnector mySql = new MySqlConnector("local", Dbname, Username, Passwd); mySql.Initialize(); Assert.IsFalse(mySql.Connect()); }
public void MySqlConnectionConnectWrongPw() { MySqlConnector mySql = new MySqlConnector(Host, Dbname, Username, "test"); mySql.Initialize(); Assert.IsFalse(mySql.Connect()); }
public void MySqlConnectionConnectWrongDbName() { MySqlConnector mySql = new MySqlConnector(Host, "Foobar", Username, Passwd); mySql.Initialize(); Assert.IsFalse(mySql.Connect()); }
public void MySqlConnectionConnectSuccess() { MySqlConnector mySql = new MySqlConnector(Host, Dbname, Username, Passwd); mySql.Initialize(); Assert.IsTrue(mySql.Connect()); }
public void MysqlConnectionHostDbNameTest() { MySqlConnector mySql = new MySqlConnector(Host, Dbname); Assert.AreEqual(mySql.Host, Host); Assert.AreEqual(mySql.DbName, Dbname); }
public void MySqlConnectionInitMissingPasswdUserTest() { MySqlConnector mySql = new MySqlConnector(Host, Dbname); Assert.IsFalse(mySql.Initialize()); }
public void MysqlConnectionHostTest() { MySqlConnector mySql = new MySqlConnector(Host); Assert.AreEqual(mySql.Host, Host); }
public void MysqlConnectionHostDbNameUserPwTest() { MySqlConnector mySql = new MySqlConnector(Host, Dbname, Username, Passwd); Assert.AreEqual(mySql.Host, Host); Assert.AreEqual(mySql.DbName, Dbname); Assert.AreEqual(mySql.Username, Username); Assert.AreEqual(mySql.Password, Passwd); }