Ejemplo n.º 1
0
        public void LogTraceTag_ShouldLog(Levels.LogLevel logLevel)
        {
            FailOnErrors = false;

            UntaggedLogging.LogTraceTag(0, Categories.ArgumentValidation, Levels.LevelFromLogLevel(logLevel), "Test message");

            Assert.Equal(1, LoggedEvents.Count);
            Assert.Equal(Levels.LevelFromLogLevel(logLevel), LoggedEvents[0].Level);
        }
Ejemplo n.º 2
0
 public void ToString_ShouldReturnUnderlyingEnumValue(Levels.LogLevel levelValue)
 {
     Assert.Equal(levelValue.ToString(), Levels.LevelFromLogLevel(levelValue).ToString());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="level">level</param>
 internal Level(Levels.LogLevel level)
 {
     LogLevel = level;
 }