public void ReturnsVerboseAsExpected()
        {
            var target = new EventLevelConverter();
            var result = target.Convert(EventLevel.Verbose);

            Assert.AreEqual(TraceEventType.Verbose, result);
        }
        public void ReturnsWarningAsExpected()
        {
            var target = new EventLevelConverter();
            var result = target.Convert(EventLevel.Warning);

            Assert.AreEqual(TraceEventType.Warning, result);
        }
        public void ReturnsInformationAsExpected()
        {
            var target = new EventLevelConverter();
            var result = target.Convert(EventLevel.Information);

            Assert.AreEqual(TraceEventType.Information, result);
        }
        public void ReturnsErrorAsExpected()
        {
            var target = new EventLevelConverter();
            var result = target.Convert(EventLevel.Error);

            Assert.AreEqual(TraceEventType.Error, result);
        }
        public void ReturnsCriticalAsExpected()
        {
            var target = new EventLevelConverter();
            var result = target.Convert(EventLevel.Critical);

            Assert.AreEqual(TraceEventType.Critical, result);
        }
        public void ThrowsAnExceptionWhenTheValueIsNotFound()
        {
            var target = new EventLevelConverter();

            Assert.Throws <NotSupportedException>(() => target.Convert((EventLevel)(-1)));
        }