Exemplo n.º 1
0
        public async Task Should_Poll_For_File_Presence()
        {
            Dir.Clean(".");

            string fileName = $"{Guid.NewGuid()}.txt";

            _logger.LogDebug("Write delayed file: {file}", fileName);
            await WriteFileDelayed(fileName, TimeInt._1s);

            await Poll.UntilFileExistsEvery1sFor5s(fileName);
        }