Subversion Repository Public Repository

ConnectionOdbcSdk

Diff Revisions 11 vs 12 for /trunk/ConnectionServerOdbcIntegrationTests/IntegrationTests/ConnectionInformixAdoNetDatabaseFunctionIntegrationTests.cs

Diff revisions: vs.
  @@ -190,10 +190,28 @@
190 190
191 191 #endregion
192 192
193 + [TestMethod]
194 + public void UpdateDatabaseName_Null()
195 + {
196 + var res = DbFunctions.UpdateDatabaseName(null);
197 + Assert.IsFalse(res.Successful, "Calling UpdateDatabaseName with null parameter should fail:" + res);
198 + }
199 +
200 + [TestMethod]
201 + public void UpdateDatabaseName_UnityMbxDb6()
202 + {
203 + var res = DbFunctions.UpdateDatabaseName("UNITYMBXDB6");
204 + Assert.IsFalse(res.Successful, "Calling UpdateDatabaseName with null parameter should fail:" + res);
205 + Assert.IsFalse(DbFunctions.CycleDatabaseConnection(),"Cycling database connection after setting invalid DB name should fail");
206 + }
207 +
208 +
193 209
194 210 [TestMethod]
195 211 public void CycleDatabaseConnection_Success()
196 212 {
213 + var res=DbFunctions.UpdateDatabaseName("UnityDirDb");
214 + Assert.IsTrue(res.Successful,"Failed to attach to UnityDirDb:"+res);
197 215 Assert.IsTrue(DbFunctions.CycleDatabaseConnection(), "Cycling database failed");
198 216 }
199 217