private void DoChecksFor_RebuildIndex_ManyPages(IPagesStorageProviderV30 prov)
        {
            int docCount, wordCount, matchCount;
            long size;
            prov.GetIndexStats(out docCount, out wordCount, out matchCount, out size);
            Assert.AreEqual(PagesContent.Length, docCount, "Wrong document count");
            Assert.IsTrue(wordCount > 0, "Wrong word count");
            Assert.IsTrue(matchCount > 0, "Wrong match count");
            Assert.IsTrue(size > 0, "Wrong size");

            SearchResultCollection results = prov.PerformSearch(new SearchParameters("lorem"));
            Assert.IsTrue(results.Count > 0, "No results returned");
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="T:IndexRow" /> class.
        /// </summary>
        /// <param name="provider">The original provider.</param>
        public IndexRow(IPagesStorageProviderV30 provider)
        {
            this.provider = provider.Information.Name;
            providerType = provider.GetType().FullName;

            int docCount, wordCount, matchCount;
            long size;
            provider.GetIndexStats(out docCount, out wordCount, out matchCount, out size);

            this.documents = docCount.ToString();
            this.words = wordCount.ToString();
            this.occurrences = matchCount.ToString();
            this.size = Tools.BytesToString(size);

            this.isOk = !provider.IsIndexCorrupted;
        }