Exemplo n.º 1
0
        public void ParseMessageStartsWithInformation()
        {
            (string Message, LogEventLevel Level)logItem = LogMessageExtensions.Parse("[Information] My message");

            Assert.Equal("My message", logItem.Message);
            Assert.Equal(LogEventLevel.Information, logItem.Level);
        }
Exemplo n.º 2
0
        public void ParseMessageStartsWithDebug()
        {
            (string Message, LogEventLevel Level)logItem = LogMessageExtensions.Parse("[Debug] My message");

            Assert.Equal("My message", logItem.Message);
            Assert.Equal(LogEventLevel.Debug, logItem.Level);
        }
Exemplo n.º 3
0
        public void ParseMessageStartsWithVerbose()
        {
            (string Message, LogEventLevel Level)logItem = LogMessageExtensions.Parse("[Verbose] My message");

            Assert.Equal("My message", logItem.Message);
            Assert.Equal(LogEventLevel.Verbose, logItem.Level);
        }
Exemplo n.º 4
0
        public void ParseMessageStartsWithDebug()
        {
            (string?message, var level) = LogMessageExtensions.Parse("[Debug] My message");

            Assert.Equal("My message", message);
            Assert.Equal(LogEventLevel.Debug, level);
        }
Exemplo n.º 5
0
        public void ParseMessageStartsWithVerbose()
        {
            (string?message, var level) = LogMessageExtensions.Parse("[Verbose] My message");

            Assert.Equal("My message", message);
            Assert.Equal(LogEventLevel.Verbose, level);
        }
Exemplo n.º 6
0
        public void ParseMessageStartsWithInformation()
        {
            (string?message, var level) = LogMessageExtensions.Parse("[Information] My message");

            Assert.Equal("My message", message);
            Assert.Equal(LogEventLevel.Information, level);
        }
Exemplo n.º 7
0
        public void ParseMessageStartsWithFatal()
        {
            (string?message, var level) = LogMessageExtensions.Parse("[Fatal] My message");

            Assert.Equal("My message", message);
            Assert.Equal(LogEventLevel.Fatal, level);
        }
Exemplo n.º 8
0
        public void ParseMessageStartsWithError()
        {
            (string?message, var level) = LogMessageExtensions.Parse("[Error] My message");

            Assert.Equal("My message", message);
            Assert.Equal(LogEventLevel.Error, level);
        }