public void DebugLogClearsListeners() { var testListener = new TestListener(); DebugLog.AddListener(testListener); Assert.Contains(testListener, DebugLog.listeners); DebugLog.ClearListeners(); Assert.DoesNotContain(testListener, DebugLog.listeners); }
public override void After(System.Reflection.MethodInfo methodUnderTest) { DebugLog.Enabled = false; DebugLog.ClearListeners(); }
public override void Before(System.Reflection.MethodInfo methodUnderTest) { DebugLog.ClearListeners(); }