public void TestTimestampFormattingLocalVsUtc(LogMessage.TimestampFormatMode timestampFormat, string expectedFormatString, bool useLocalTime) { var testMessage = new LogMessage(BaseLogger.LogLevels.INFO, "Test message"); var formattedMessage = testMessage.GetFormattedMessage(useLocalTime, timestampFormat); EvaluateFormattedMessageTimestamp(formattedMessage, expectedFormatString, useLocalTime); }
public void TestTimestampFormatting(LogMessage.TimestampFormatMode timestampFormat, string expectedFormatString) { var testMessage = new LogMessage(BaseLogger.LogLevels.INFO, "Test message"); var formattedMessage = testMessage.GetFormattedMessage(timestampFormat); EvaluateFormattedMessageTimestamp(formattedMessage, expectedFormatString, true); }