public void InvalidLoggers_Handle_SetsLoggerListAsEmpty(string loggers) { var handler = new LoggersOptionHandler(); var options = new DeploymentOptions { Loggers = loggers }; handler.Handle(options); options.LoggerList.ShouldBeEmpty(); }
public void SingleLogger_Handle_SetsLoggerListWithOneEntry(string loggers) { var handler = new LoggersOptionHandler(); var options = new DeploymentOptions { Loggers = loggers }; handler.Handle(options); options.LoggerList.Length.ShouldBe(1); options.LoggerList.ShouldContain("Console"); }
public void MultipleLoggers_Handle_SetsLoggerListAsConsole(string loggers) { var handler = new LoggersOptionHandler(); var options = new DeploymentOptions { Loggers = loggers }; handler.Handle(options); options.LoggerList.Length.ShouldBe(2); options.LoggerList.ShouldContain("Console"); options.LoggerList.ShouldContain("File"); }