public void TryUseInMemoryReminderService_Refuses_Null_Configuration() { ISiloHostBuilder builder = new SiloHostBuilder(); IConfiguration configuration = null; var error = Assert.Throws <ArgumentNullException>(() => { builder.TryUseInMemoryReminderService(configuration); }); Assert.Equal("configuration", error.ParamName); }