public void WithNoSwitchToControlEventsAreStillFiltered() { var cls = new ControlledLevelSwitch(null); cls.Update(LogEventLevel.Warning); Assert.True(cls.IsIncluded(Some.ErrorEvent())); Assert.False(cls.IsIncluded(Some.InformationEvent())); }
public void WithNoSwitchToControlAllEventsAreIncludedAfterReset() { var cls = new ControlledLevelSwitch(null); cls.Update(LogEventLevel.Warning); cls.Update(null); Assert.True(cls.IsIncluded(Some.DebugEvent())); }
public void WithNoSwitchToControlAllEventsAreIncluded() { var cls = new ControlledLevelSwitch(null); Assert.True(cls.IsIncluded(Some.DebugEvent())); }
public bool IsIncluded(LogEvent logEvent) { return(_controlledSwitch.IsIncluded(logEvent)); }