public void TraceLevelFromMessage(String level, SystemEventLevel systemEventlevel)
        {
            processRetriever.Setup(mock => mock.GetProcessById(123)).Returns(new UnknownProcess(123));

            var message = new OutputDebugString("xUnit Source", 123, String.Format("<log4net:event level=\"{0}\"></log4net:event>", level));
            var e       = messageParser.Parse(message);

            Assert.Equal(systemEventlevel, e.Level);
        }
Exemple #2
0
 public void AlwaysTraceLevel()
 {
     Assert.Equal(SystemEventLevel.Trace, messageParser.Parse(CreateMessage()).Level);
 }
 public void LevelFromMessage()
 {
     Assert.Equal(SystemEventLevel.Debug, messageParser.Parse(CreateMessage()).Level);
 }