MongoDB.Driver.TestCursor.TestCanReadSmall C# (CSharp) Метод

TestCanReadSmall() приватный Метод

private TestCanReadSmall ( ) : void
Результат void
        public void TestCanReadSmall()
        {
            ICursor c = db["tests"]["smallreads"].FindAll();

            Assert.IsNotNull(c,"Cursor shouldn't be null");
            int reads = 0;
            foreach(Document doc in c.Documents){
                reads++;
            }
            Assert.IsTrue(reads > 0, "No documents were returned.");
            Assert.AreEqual(5, reads, "More than 5 documents in the small reads dataset");
        }