public void LogExceptionSetsSeverity()
        {
            var logger = new InMemoryLogger();
            logger.LogException(Severity.Warning, GenerateException());

            var logEventFields = logger.Events[0].ToDictionary();
            Assert.Equal("warning", logEventFields["severity"]);
        }
        public void LogExceptionSetsExceptionDetails()
        {
            var logger = new InMemoryLogger();
            logger.LogException(Severity.Warning, GenerateException());

            var logEventFields = logger.Events[0].ToDictionary();
            Assert.Equal("Oh no!", logEventFields["message"]);
        }