Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #4
0
        public void ParseMessageStartsWithDebug()
        {
            (string?message, var level) = LogMessageExtensions.Parse("[Debug] My message");

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

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

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

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

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