public async Task GetResultPreviewAsync_ResultDoesntExist()
        {
            //Arrange
            SearchResult search  = TestConstants.NotFoundResult;
            var          service = TestInterfaceImplementations.GetFileSearchServiceImplementation();

            //Act
            var result = await service.GetResultPreviewAsync(search, 1);

            //Assert
            Assert.IsTrue(String.IsNullOrWhiteSpace(result));
        }
        public async Task GetFiles_Fail(string[] fileFormats)
        {
            //Arrange
            var service       = TestInterfaceImplementations.GetFileSearchServiceImplementation();
            var testDirectory = Path.GetFullPath(TestConstants.FilesDirectoryPath);

            //Act
            var files = await service.GetFilesAsync(fileFormats, testDirectory);

            //Assert
            Assert.IsTrue(files.Count() == 0);
        }
        public async Task FindInFile_TestString_NotFoundInFile(string fileFormat)
        {
            //Arrange
            var service       = TestInterfaceImplementations.GetFileSearchServiceImplementation();
            var testDirectory = Path.GetFullPath(TestConstants.FilesDirectoryPath);
            var files         = (await service.GetFilesAsync(new string[] { fileFormat }, testDirectory)).ToArray();

            //Act
            var results = await service.FindInFileAsync(files[0], new string[] { TestConstants.SearchKeywordGibberish });

            //Assert
            Assert.IsTrue(results.Count() == 0);
        }