Amazon.KinesisTap.Core.Test/DirectoryWatcherTest.cs
/// <summary>
/// Files like .zip should not be pickup by the wild-card filter
/// </summary>
/// <returns></returns>
Files like .zip should not be pickup by the wild-card filter
Files like . zip should not be pickup by the wild - card filter
[Fact]
        public async Task ExcludedFileTest()
        {
            string testName = "ExcludedFileTest";
            string filter = "*.*";
            await CreateAndRunWatcher(testName, filter, async (logRecords) =>
            {
                string filePath = Path.Combine(TestUtility.GetTestHome(), testName, "test.zip");
                WriteRandomRecords(filePath, out int records, out string lastLine, GenerateSingleLineRecord);
                await Task.Delay(2000);
                Assert.Empty(logRecords); 
            });
        }
[ Fact ] public async Task ExcludedFileTest ( ) { string testName = " " ; string filter = " " ; await CreateAndRunWatcher ( testName , filter , async ( logRecords ) => { string filePath = Path . Combine ( TestUtility . GetTestHome ( ) , testName , " " ) ; WriteRandomRecords ( filePath , out int records , out string lastLine , GenerateSingleLineRecord ) ; await Task . Delay ( 2000 ) ; Assert . Empty ( logRecords ) ; } ) ; }
Files like .zip should not be pickup by the wild-card filter
Files like . zip should not be pickup by the wild - card filter
//Should not pickup anything
None