public void TestFindWithinRectangle()
{
if (_collection.Exists()) { _collection.Drop(); }
_collection.Insert(new Place { Location = new[] { -74.0, 40.74 }, Name = "10gen", Type = "Office" });
_collection.Insert(new Place { Location = new[] { -75.0, 40.74 }, Name = "Two", Type = "Coffee" });
_collection.Insert(new Place { Location = new[] { -74.0, 41.73 }, Name = "Three", Type = "Coffee" });
_collection.CreateIndex(IndexKeys.GeoSpatial("Location"));
var query = Query.WithinRectangle("Location", -75.0, 40, -73.0, 42.0);
var hits = _collection.Find(query).ToArray();
Assert.AreEqual(3, hits.Length);
// note: the hits are unordered
}