public void TestMessageAsNamePattern() { var loggingEvent = GetLoggingEvent(); var p = new PatternParser(loggingEvent); p.AddConverter("message-as-name", typeof(MessageAsNamePatternConverter)); var s = p.Parse("%message-as-name{-2}"); Assert.AreEqual("Tw", s, "%message-as-name not registered"); }
public void TestMessageAsNamePattern() { var loggingEvent = GetLoggingEvent(); var p = new PatternParser(loggingEvent); p.AddConverter("message-as-name", typeof(MessageAsNamePatternConverter)); var s = p.Parse("%message-as-name{-2}"); Assert.AreEqual("Tw/o", s, "%message-as-name not registered"); }