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