private void CanLog(DefaultTrace.TraceLevel level, Action <TestDefaultTrace> action)
        {
            var trace = new TestDefaultTrace(level);

            action(trace);

            Assert.AreEqual(1, trace.Counter);
            Assert.AreEqual(TestCategory, trace.Category);
            Assert.AreEqual(TestMessage, trace.Message);
        }
        public void CanUseDebugTraceLevel()
        {
            var trace = new TestDefaultTrace(DefaultTrace.TraceLevel.Debug);

            trace.Debug(TestCategory, trace.Category);
            trace.Info(TestCategory, trace.Category);
            trace.Warn(TestCategory, trace.Category);
            trace.Error(TestCategory, null, trace.Category);

            Assert.AreEqual(4, trace.Counter);
        }