public void GetNewCollection() { DocumentBase dbase = new DocumentBase("Genesis"); DbObject dobj = new DbObject(dbase); var result = dobj.GetMember("People"); Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(CollectionObject)); var collobj = (CollectionObject)result; Assert.IsNotNull(collobj.Collection); Assert.AreEqual("People", collobj.Collection.Name); Assert.AreSame(collobj.Collection, dbase.GetCollection("People")); }