public void AddFileLogProviderMethod4SadPath() { var builder = new Mock <ILoggerBuilder>().Object; Action act = () => builder.AddFileLogProvider((Func <IServiceProvider, ILogFormatter>)null, "c:\\foobar", LogLevel.Info); act.Should().ThrowExactly <ArgumentNullException>().WithMessage("*formatterRegistration*"); }
public void AddFileLogProviderMethod1SadPath() { var builder = new Mock <ILoggerBuilder>().Object; Action act = () => builder.AddFileLogProvider((string)null, "c:\\foobar", LogLevel.Info); act.Should().ThrowExactly <ArgumentNullException>().WithMessage("*template*"); }