Amazon.KinesisTap.Core.Test/DirectoryWatcherTest.cs
/// <summary>
/// Filter specification containing multiple filters.
/// </summary>
/// <returns></returns>
Filter specification containing multiple filters.
Filter specification containing multiple filters .
[Fact]
        public async Task MultipleFilterTest()
        {
            string testName = "MultipleFilterTest";
            string filter = "*.log|*.txt";
            await CreateAndRunWatcher(testName, filter, async (logRecords) =>
            {
                int accumulatedRecords = 0;
                string filePath1 = Path.Combine(TestUtility.GetTestHome(), testName, "test.log");
                accumulatedRecords = await RunDirectoryWatcherTest(filePath1, logRecords, accumulatedRecords);
                string filePath2 = Path.Combine(TestUtility.GetTestHome(), testName, "test.txt");
                accumulatedRecords = await RunDirectoryWatcherTest(filePath2, logRecords, accumulatedRecords);
            });
        }
[ Fact ] public async Task MultipleFilterTest ( ) { string testName = " " ; string filter = " " ; await CreateAndRunWatcher ( testName , filter , async ( logRecords ) => { int accumulatedRecords = 0 ; string filePath1 = Path . Combine ( TestUtility . GetTestHome ( ) , testName , " " ) ; accumulatedRecords = await RunDirectoryWatcherTest ( filePath1 , logRecords , accumulatedRecords ) ; string filePath2 = Path . Combine ( TestUtility . GetTestHome ( ) , testName , " " ) ; accumulatedRecords = await RunDirectoryWatcherTest ( filePath2 , logRecords , accumulatedRecords ) ; } ) ; }
Filter specification containing multiple filters.
Filter specification containing multiple filters .
//Run a test with extension 1 //Run a test with extension 2
None