Skip to content

Commit

Permalink
Remove ReSharper false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibaud DESODT authored and tsimbalar committed Nov 8, 2017
1 parent 3e224a0 commit a80ea3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Serilog.Tests/Settings/KeyValuePairSettingsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,14 @@ public void LoggingLevelSwitchCanBeUsedForMinimumLevelOverrides()
Assert.False(evt is null, "Minimul level is Debug. It should log Information messages");

evt = null;

// ReSharper disable HeuristicUnreachableCode
systemLogger.Write(Some.InformationEvent());
Assert.True(evt is null, "LoggingLevelSwitch initial level was Warning for logger System.*. It should not log Information messages for SourceContext System.Bar");

systemLogger.Write(Some.WarningEvent());
Assert.False(evt is null, "LoggingLevelSwitch initial level was Warning for logger System.*. It should log Warning messages for SourceContext System.Bar");

// ReSharper disable HeuristicUnreachableCode

evt = null;
var controlSwitch = DummyWithLevelSwitchSink.ControlLevelSwitch;

Expand Down

0 comments on commit a80ea3e

Please sign in to comment.