public void AddConsoleLogProviderMethod4SadPath() { var builder = new Mock <ILoggerBuilder>().Object; Action act = () => builder.AddConsoleLogProvider((Func <IServiceProvider, ILogFormatter>)null, LogLevel.Info); act.Should().ThrowExactly <ArgumentNullException>().WithMessage("*formatterRegistration*"); }
public void AddConsoleLogProviderMethod1SadPath() { var builder = new Mock <ILoggerBuilder>().Object; Action act = () => builder.AddConsoleLogProvider((string)null, LogLevel.Info); act.Should().ThrowExactly <ArgumentNullException>().WithMessage("*template*"); }