Browse Source

Cleanup. Removed warning and fixed MonoDevelop compile issue

pull/69/head
sridharn 14 years ago
parent
commit
be715ac14d
  1. 4
      BsonUnitTests/Jira/CSharp263Tests.cs
  2. 4
      Driver/Core/MongoServerInstance.cs

4
BsonUnitTests/Jira/CSharp263Tests.cs

@ -70,7 +70,7 @@ namespace MongoDB.BsonUnitTests.Jira {
[Test]
public void TestTwoDimensionalArrayEmpty() {
var c = new C { Id = 1, Obj = new int[,] { } };
var c = new C { Id = 1, Obj = new int[0,0] };
var json = c.ToJson();
var expected = "{ '_id' : 1, 'Obj' : { '_t' : 'System.Int32[,]', '_v' : [] } }".Replace("'", "\"");
Assert.AreEqual(expected, json);
@ -106,7 +106,7 @@ namespace MongoDB.BsonUnitTests.Jira {
[Test]
public void TestThreeDimensionalArrayEmpty() {
var c = new C { Id = 1, Obj = new int[,,] { } };
var c = new C { Id = 1, Obj = new int[0,0,0] };
var json = c.ToJson();
var expected = "{ '_id' : 1, 'Obj' : { '_t' : 'System.Int32[,,]', '_v' : [] } }".Replace("'", "\"");
Assert.AreEqual(expected, json);

4
Driver/Core/MongoServerInstance.cs

@ -225,7 +225,7 @@ namespace MongoDB.Driver {
// if ping fails assume all connections in the connection pool are doomed
try {
Ping();
} catch (Exception ex) {
} catch {
// Console.WriteLine("MongoServerInstance[{0}]: Ping failed: {1}.", sequentialId, ex.Message);
connectionPool.Clear();
}
@ -235,7 +235,7 @@ namespace MongoDB.Driver {
var previousState = state;
try {
VerifyState(connection);
} catch (Exception ex) {
} catch {
// ignore exceptions (if any occured state will already be set to Disconnected)
// Console.WriteLine("MongoServerInstance[{0}]: VerifyState failed: {1}.", sequentialId, ex.Message);
}

Loading…
Cancel
Save