Amazon.KinesisTap.Core.Test/DirectoryWatcherTest.cs
/// <summary>
/// Write to a single log file. New or existing.
/// </summary>
/// <returns></returns>
Write to a single log file. New or existing.
Write to a single log file . New or existing .
[Fact]
        public async Task SingleLogTest()
        {
            string testName = "SingleLogTest";
            string filter = "KinesisTapTest????????.log";
            string logFileNameFormat = "KinesisTapTest{0:yyyyMMdd}.log";
            await CreateAndRunWatcher(testName, filter, async (logRecords) =>
            {
                int accumulatedRecords = 0;
                string filePath = GetFileNameFromTimeStamp(testName, logFileNameFormat);
                accumulatedRecords = await RunDirectoryWatcherTest(filePath, logRecords, accumulatedRecords);
                accumulatedRecords = await RunDirectoryWatcherTest(filePath, logRecords, accumulatedRecords);
            });
        }
[ Fact ] public async Task SingleLogTest ( ) { string testName = " " ; string filter = " " ; string logFileNameFormat = " " ; await CreateAndRunWatcher ( testName , filter , async ( logRecords ) => { int accumulatedRecords = 0 ; string filePath = GetFileNameFromTimeStamp ( testName , logFileNameFormat ) ; accumulatedRecords = await RunDirectoryWatcherTest ( filePath , logRecords , accumulatedRecords ) ; accumulatedRecords = await RunDirectoryWatcherTest ( filePath , logRecords , accumulatedRecords ) ; } ) ; }
Write to a single log file.
Write to a single log file .
//Run one batch of test //Run another batch of test with the same file name
None