Пример #1
0
        public void DebugLogClearsListeners()
        {
            var testListener = new TestListener();

            DebugLog.AddListener(testListener);

            Assert.Contains(testListener, DebugLog.listeners);

            DebugLog.ClearListeners();

            Assert.DoesNotContain(testListener, DebugLog.listeners);
        }
Пример #2
0
 public override void After(System.Reflection.MethodInfo methodUnderTest)
 {
     DebugLog.Enabled = false;
     DebugLog.ClearListeners();
 }
Пример #3
0
 public override void Before(System.Reflection.MethodInfo methodUnderTest)
 {
     DebugLog.ClearListeners();
 }