craiggwilson / fluent-mongo

Provides a fluent interface on top of the 10gen driver including Linq.
172 stars 28 forks source link

Test case fixes #16

Closed djcsdy closed 13 years ago

djcsdy commented 13 years ago

Hi,

I noticed that some test cases were failing against MongoDB.Driver 1.1, so I fixed them.

These were failing because the MongoDB driver has changed its JSON serialization for regular expressions. I’ve fixed this by changing the tests so that, instead of doing a string comparison against a JSON serialization of the query BsonDocument, they do a direct structural comparison against the query BsonDocument itself, since that is what we really care about.

Cheers, Dan.