public void LocalTimeTest() { var dt = new ShortDateLayoutRenderer(); dt.UniversalTime = false; var ei = new LogEventInfo(LogLevel.Info, "logger", "msg"); Assert.AreEqual(ei.TimeStamp.ToString("yyyy-MM-dd"), dt.Render(ei)); }
public void LocalTimeTest() { var layoutRenderer = new ShortDateLayoutRenderer(); layoutRenderer.UniversalTime = false; var logEvent = new LogEventInfo(LogLevel.Info, "logger", "msg"); Assert.Equal(logEvent.TimeStamp.ToString("yyyy-MM-dd"), layoutRenderer.Render(logEvent)); }