We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 849c5f5 commit 845b3fcCopy full SHA for 845b3fc
src/MongoDB.Driver.Tests/MongoCollectionTests.cs
@@ -1251,6 +1251,17 @@ public void TestFindWithinRectangle()
1251
// note: the hits are unordered
1252
}
1253
1254
+ [Test]
1255
+ public void TestFindWithMaxScan()
1256
+ {
1257
+ if (_collection.Exists()) { _collection.Drop(); }
1258
+ var docs = Enumerable.Range(0, 10).Select(x => new BsonDocument("_id", x));
1259
+ _collection.InsertBatch(docs);
1260
+
1261
+ var results = _collection.FindAll().SetMaxScan(4).ToList();
1262
+ Assert.AreEqual(4, results.Count);
1263
+ }
1264
1265
[Test]
1266
public void TestFindWithMaxTime()
1267
{
0 commit comments