Beispiel #1
0
        public void SetLoggingElement()
        {
            var loggingElement = new LoggingElement();

            var section = new Section();

            section.Logging = loggingElement;

            Assert.Equal(loggingElement, section.Logging);
        }
        public void GetSetLevel()
        {
            var level = LoggingLevel.Trace;

            var element = new LoggingElement();

            element.Level = level;

            Assert.Equal(level, element.Level);
        }
        public void ReturnDefaultLoggingLevel()
        {
            var element = new LoggingElement();

            Assert.Equal(LoggingLevel.Off, element.Level);
        }