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

            var section = new Section();

            section.Logging = loggingElement;

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

            var element = new LoggingElement();

            element.Level = level;

            Assert.Equal(level, element.Level);
        }
示例#3
0
        public void ReturnDefaultLoggingLevel()
        {
            var element = new LoggingElement();

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