public void WhenHealthCheckBuilderIsNull_ThrowArgumentNullException() { IHealthChecksBuilder builder = null; Action act = () => builder.AddAzureServiceBusQueueCheck(QueueName); act.Should().Throw <ArgumentNullException>().And.ParamName.Should().Be("builder"); }