Subversion Repository Public Repository

ConnectionOdbcSdk

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

Diff revisions: vs.
  @@ -122,21 +122,24 @@
122 122
123 123
124 124 [TestMethod]
125 - public void UpdateStatisticsTest()
125 + public void UpdateStatisticsTest_Success()
126 126 {
127 - var res = Server.UpdateStatisticsForMailstore("UnityMbxDb2");
128 - Assert.IsTrue(res.Successful,"Failed updating UnityMbxDb2 statistics:"+res);
127 + var res = Server.UpdateStatisticsForMailstore("UnityDynDb");
128 + Assert.IsTrue(res.Successful, "Failed updating UnityDynDb statistics:" + res);
129 + }
129 130
130 - res = Server.UpdateStatisticsForMailstore("Junk");
131 + [TestMethod]
132 + public void UpdateStatisticsTest_InvalidDbNameFailure()
133 + {
134 + var res = Server.UpdateStatisticsForMailstore("Junk");
131 135 Assert.IsFalse(res.Successful,"Updating statistics on invalid database name should fail:"+res);
132 136 }
133 137
134 138 [TestMethod]
135 - public void GetLogingErrorTests()
139 + public void UpdateStatisticsTest_ValidDbNameNotPresentFailure()
136 140 {
137 - //currently there is no public constructor on the OdbcException class so testing this is difficult at best
138 - Assert.IsTrue(string.IsNullOrEmpty(Server.GetLoginErrorString(null)),"Empty string should be returned from " +
139 - "GetLoginErrorString with null param");
141 + var res = Server.UpdateStatisticsForMailstore("UnityMbxDb6");
142 + Assert.IsFalse(res.Successful, "Updating statistics on UnityMbxDb6 database name should fail:" + res);
140 143 }
141 144
142 145 [TestMethod]