private void AssertGetSmartLog(SmartLogLevel smartLogLevel, SmartLogLevel logLevel) { SmartLoggerPerType.TryGetValue(typeof(SmartLoggerTests), out SmartLogPerTypeByLevel <SmartLoggerTests> expectedSmartLogPerTypeByLevel); SmartLogPerTypeByLevel <SmartLoggerTests> smartLogPerTypeByLevel = AssertGetSmartLog(Getting, smartLogLevel, expectedSmartLogPerTypeByLevel); Thread.Sleep(100); LogSize(smartLogLevel); string line = SmartLogLine.GetLine(logLevel.ToLine(), SmartLogGeneratorName, smartLogLevel.ToLine()); smartLogPerTypeByLevel.Log(logLevel, line); Thread.Sleep(100); }
private void LogSize(SmartLogLevel smartLogLevel) { SmartLoggerPerType.TryGetValue(typeof(SmartLoggerTests), out SmartLogPerTypeByLevel <SmartLoggerTests> smartLogPerTypeByLevel); Assert.NotNull(smartLogPerTypeByLevel); smartLogPerTypeByLevel.TryGetValue(smartLogLevel, out SmartLogLines smartLogLines); Assert.NotNull(smartLogLines); string line = SmartLogLine.GetLine(SmartLogGeneratorName, Size, smartLogPerTypeByLevel.Size().ToString()); smartLogPerTypeByLevel.Log(smartLogLevel, line); Assert.IsNotEmpty(smartLogLines); Thread.Sleep(100); }