Ejemplo n.º 1
0
        public void IndexTest()
        {
            // Given
            var folderPath = SharedTestData.TestDocFolderPath;
            var custodian  = new Custodian();

            // When
            custodian.Reset();
            var result = custodian.TakeCareOf(folderPath: folderPath);

            // Then
            Assert.Equal(10, result.Documents.Count);
        }
Ejemplo n.º 2
0
        public void SearchTest()
        {
            //Given
            var keywords   = new string[] { "university" };
            var folderPath = SharedTestData.TestDocFolderPath;
            var custodian  = new Custodian();

            //When
            custodian.TakeCareOf(folderPath);
            var result     = custodian.Search(keywords);
            var resultSize = result.Count;

            //Then
            Assert.Equal(expected: 6, resultSize);
        }