Esempio n. 1
0
 public void TestTestConnectionMethidWithNullValues()
 {
     wrapper = new MySQLWrapper(null, null, null, null);
     Assert.False(wrapper.TestConnection());
 }
Esempio n. 2
0
 public void TestTestConnectionMethidWithInvalidUserID()
 {
     wrapper = new MySQLWrapper("s403g01.cpsc.ucalgary.ca", "ismacaul_HospiPalTestDB", "seng403", "seng403");
     Assert.False(wrapper.TestConnection());
 }
Esempio n. 3
0
 public void TestTestConnectionMethodWithInvalidServer()
 {
     wrapper = new MySQLWrapper("", "ismacaul_HospiPalTestDB", "ismacaul_seng403", "seng403");
     Assert.False(wrapper.TestConnection());
 }
Esempio n. 4
0
 public void TestTestConnectionMethidWithInvalidDatabase()
 {
     wrapper = new MySQLWrapper("s403g01.cpsc.ucalgary.ca", "ismacaul_hos", "ismacaul_seng403", "seng403");
     Assert.False(wrapper.TestConnection());
 }
Esempio n. 5
0
 public void TestTestConnectionMethidWithValidValues()
 {
     wrapper = new MySQLWrapper("s403g01.cpsc.ucalgary.ca", "ismacaul_HospiPalTestDB", "ismacaul_seng403", "seng403");
     Assert.True(wrapper.TestConnection());
 }