-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.9
-
Component/s: Documentation
-
None
According to the docs, MongoServer.GetDatabase should return the same instance when the same database settings (e.g. database name) are used. However, the following test fails:
void describe_get_database()
{
MongoServer server = null;
MongoDatabase db = null;
MongoDatabase db2 = null;
string dbName = null;
before = () =>
;
act = () => db2 = server.GetDatabase(dbName);
context["when the database name is the same"] = () =>
;
}
Have I misunderstood the documentation as looking through the source code it appears that GetDatabase always returns a new MongoDatabase instance.