public void Test_LoggingEnabled_DebugMode_DebugLevel_SettingsTrue_ReturnsTrue() { LogSupervisor supervisor = new LogSupervisor(); supervisor.ModeDetector = new MockModeDetector(true); supervisor.SettingsManager = MockLogSettingsManager.NewSpecified(true); bool isEnabled = supervisor.LoggingEnabled(LogLevel.Debug); Assert.IsTrue(isEnabled, "Should have been true."); }
public void Test_LoggingEnabled_ReleaseMode_InfoLevel_ReturnsTrue() { LogSupervisor supervisor = new LogSupervisor(); supervisor.ModeDetector = new MockModeDetector(false); bool isEnabled = supervisor.LoggingEnabled(LogLevel.Info); Assert.IsTrue(isEnabled, "Should have been true."); }