public void TestUpdate() { _collection.Drop(); _collection.Insert(new BsonDocument("x", 1)); _collection.Update(Query.EQ("x", 1), Update.Set("x", 2)); var document = _collection.FindOne(); Assert.AreEqual(2, document["x"].AsInt32); }