Example #1
0
        public void TestFolderContentFired()
        {
            DocumentReader reader = new DocumentReader();
            string folderName = Workshare.TestUtils.TestFileUtils.MakeRootPathAbsolute(@"\projects\Hygiene\src\TestDocuments\PutSeparateTestInSeparateFolder");
            IFile folder = FileFactory.Create(folderName, folderName);
            Assert.IsNotNull(folder);
            Assert.IsTrue(folder.IsCollection);
            AddFilesToFolder(folder, folder);

            using (folder)
            {
                folder.Read(reader);
                List<DocumentReader.StringWithLowerCase> context = reader.Context("DocumentStatistic");
                Assert.IsTrue(context.Count > 0);

                context = reader.Context("Paragraph");
                Assert.IsTrue(context.Count > 0);
            }
        }