public void SingleThread_RollingSizeLogFile_Test() { SingleThreadTestsCaseRunner.ReportStartedTest(ThreadingType.SingleThreaded, LogFileType.RollingSizeFile); #region Log4net Log4NetLogger.ConfigureRollingSizeFileLogger(ThreadingType.SingleThreaded); SingleThreadTestsCaseRunner.Run( LoggingLib.Log4Net, LogFileType.RollingSizeFile, (runNr, logNr) => Log4NetLog.Info($"Run #{runNr} - Log #{logNr}")); Log4NetLogger.DisableLogger(); #endregion SleepBeforeNextTestCaseRun(); #region NLog NLogLogger.ConfigureRollingSizeFileLogger(ThreadingType.SingleThreaded); SingleThreadTestsCaseRunner.Run( LoggingLib.NLog, LogFileType.RollingSizeFile, (runNr, logNr) => NLogLog.Info($"Run #{runNr} - Log #{logNr}")); #endregion SleepBeforeNextTestCaseRun(); #region Serilog Serilog.Core.Logger serilogLog = SerilogLogger.ConfigureRollingSizeFileLogger(ThreadingType.SingleThreaded); SingleThreadTestsCaseRunner.Run( LoggingLib.Serilog, LogFileType.RollingSizeFile, (runNr, logNr) => serilogLog.Information($"Run #{runNr} - Log #{logNr}")); #endregion SingleThreadTestsCaseRunner.ReportTestResults(ThreadingType.SingleThreaded, LogFileType.RollingSizeFile); }