示例#1
0
文件: MongoTests.cs 项目: zeya/NoRM
 public void ConnectsToDefaultServerByDefault()
 {
     using (var mongo = new Mongo())
     {
         var endpoint = (IPEndPoint)mongo.ServerConnection().Client.Client.RemoteEndPoint;
         Assert.Equal("127.0.0.1", endpoint.Address.ToString());
         Assert.Equal(27017, endpoint.Port);
     }
 }